counts = dict()
names = ['chen', 'zen', 'zia', 'chen', 'chev']
for name in names:
    if name not in counts:
        counts[name] = 1
    else:
        counts[name] = counts[name] + 1
    print(counts)

891e0f8ea5ee17badf16156b735cf99f95a878d9
<mask token>

<mask token>
for name in names:
    if name not in counts:
        counts[name] = 1
    else:
        counts[name] = counts[name] + 1
    print(counts)

counts = dict()
names = ['chen', 'zen', 'zia', 'chen', 'chev']
for name in names:
    if name not in counts:
        counts[name] = 1
    else:
        counts[name] = counts[name] + 1
    print(counts)
