def get_record_count(hook, database, table):
    """ gets the row count for a specific table """
    query = '''SELECT t.row_count as record_count
    FROM "{}".information_schema.tables t
    WHERE t.table_name = '{}';'''.format(database, table)
    return hook.get_records(query).pop()[0]