def get_real_max_rows(spreadsheet):
    """ Take a spreadsheet, count until encountering a null row, and return that number.
    Spreadsheets from Google Docs seem to add +100 rows. Filter those out. """
    count = 0
    for row in spreadsheet.iter_rows(values_only=True):
        if row[0] != None:
            count += 1
    return count