dictionary collection deque code example Example: python counter >>> Counter('abracadabra').most_common(3) [('a', 5), ('r', 2), ('b', 2)]