Another way to do it, without using any modules is by using dictionaries.
If you want to consider the lower-case and upper-case letters differently, then you can use this code:
dict = {}
string = input("Enter string: ")
for x in string:
if x in dict:
dict[x] += 1
else:
dict[x] = 1
print (dict)
If the case doesn't really matter, then you can use this code:
dict = {}
string = input("Enter string: ")
string = string.lower()
for x in string:
if x in dict:
dict[x] += 1
else:
dict[x] = 1
print (dict)