What is a Counter in Python?
The function Counter() from the module ‘collections’. It counts the number of occurrences of the elements of a container.
Counter({1: 4, 3: 2, 2: 2, 4: 1})
Python provides us with a range of ways and methods to work with a Counter