Counter -- a pythonic way to counting Posted on 2023-06-15 In Python Counter is a pythonic way to handle counting repeating elements in a list. 12from collections import CounterCounter([1,2,3,3,4,3,2]) # actually this is a dictionary