how does counter work in pything code example
Example 1: counter method in python
Counter({'x': 4, 'y': 2, 'z': 2})
Example 2: counter method in python
from collections import Counter
my_str = "Welcome to Guru99 Tutorials!"
print(Counter(my_str))