Counter in pytrgon code example
Example: counter method in python
from collections import Counter
list1 = ['x','y','z','x','x','x','y','z']
print(Counter(list1))
from collections import Counter
list1 = ['x','y','z','x','x','x','y','z']
print(Counter(list1))