def followed_count(user):
    """
    Returns the count of how many users is the user following
    :param user: An User instance
    """
    if not user or user.is_anonymous():
        return 0
    return user.following()