s = 'dfjakdlfaeijflasdklfaiejlqladkjfaadfa'

#d = {}
#for c in s:
#  if c not in d:
#    d[c] = 0
#  d[c] += 1
#

#############################################

from collections import defaultdict

d = defaultdict(int)

for c in s:
  d[c] += 1

print(d)

