getting the following error while accesing python
from collections import Counter
alphas = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
res = ''
for char in alphas:
res = "{0},{1}|{2}".format(res , char, Counter[char])
print(res)
TypeError: 'type' object is not subscriptable