Say you have the following Counter object:
from collections import Counter
foo = Counter({ "a": 3, "b": 10, "c": 5 })
You can then use the .most_common()
method to get a list of tuples sorted by most to least:
>>> foo.most_common()
[('b', 10), ('c', 5), ('a', 3)]
To get the max just grab the first element:
foo_max = foo.most_common()[0]