def event_counter(json_, counter):
    """
    takes a json and counts the number of events that happened during that game

    inputs
    ------
    json__: events json
    counter: counter dictionary
    returns
    -----
    counter: counter dict with counts
    """
    for event in json_:
        event_type = event['type']['name']
        counter[event_type] +=1
    return counter