Can someone can help me how to enumerate the elements of a list to label the counting the occurrences of the elements, i.e.,
list_in = ['a','b','c']
list_out = ['a-1','b-1','c-1']
list_in = ['a','b','a']
list_out = ['a-1','b-1','a-2']
list_in = ['a','a','a']
list_out = ['a-1','a-2','a-3']