import collections
string = "bbaddddccce"
ddict = collections.defaultdict(int)
for ch in string:
ddict[ch] += 1
print(sorted(ddict.items(), key=lambda x: x[1], reverse=True)[1])
print(sorted(ddict.items(), key=lambda x: x[1], reverse=True)[1][0])
'''
run:
('c', 3)
c
'''