def get_table_number_of_rows(cursor, table_name):
    """
    Return the number of rows of a table
    """
    sql_command = f"SELECT COUNT(*) FROM '{table_name}';"
    v = cursor.execute(sql_command).fetchall()
    assert len(v) == 1
    assert len(v[0]) == 1
    return v[0][0]