I have a list of names, some names may be iterated. I want to make a counter for each name to select the maximum iterated one. For example my list is as follow:
list = ['ABC', 'BCD', 'ASD', 'ABC', 'ABC', 'ABC', 'ZXC', 'BCD']
I want the program to return:
ABC = 4
BCD = 2
ASD = 1
ZXC = 1
Finally I want to select the maximum iterated name as a winner. How can I do that. Can anyone please help me, I will be thankful to him.