from typing import Counter


def data2counter(data):
    """
    Turn data (list of dict) into a Counter object based on the name (column 'prenom'-'nom')
    """
    cpt = Counter()
    for item in data:
        name = item['prenom'] + " " + item['nom']
        cpt[name] += 1
    return cpt