def get_count(row):
    """Get count from a query result

    ``row``: Row object of a db query result
    """
    if row:
        count = row.c  # c as count by name convention
    else:
        count = 0

    return count