def add_ua(my_dict, ua):
    """
    Sets/increments the count of how many times a user_agent has been seen

    Args:
        my_dict(dict): the dictionary you are using to track this
            user_agent
        ua(str): the user_agent seen

    Returns:
        my_dict(dict): key and value pairs of user_agent and count
    """
    if ua in my_dict:
        my_dict[ua] += 1
    else:
        my_dict[ua] = 1

    return my_dict