def count_tags(spacy_data):
    """
    Count the occurence of each tag at token level. This is NOT SENT level
    """
    ents_count = dict()
    for instance in spacy_data:
        ents = instance[1]['entities']
        for ent in ents: ents_count[ent[2]] = ents_count.get(ent[2], 0) + 1
    return ents_count