for name, counts in counter.items():
    if counts == 1:
        result.append(name)
else:
    for i in range(counts):
        result.append('%s_%d' % (name, i + 1))
print(result)
Labeling duplicates in a list