def get_tree_size(cur):
    sql = """
      SELECT
        COUNT(*)
      FROM
        nodes;
    """
    cur.execute(sql)
    result = cur.fetchone()
    return result['count']
Return the total amount of tree nodes.
dataset/ETHPy150Open conceptsandtraining/libtree/libtree/core/query.py/get_tree_size