So basically I need the program to count how many times each letter is used in a sentence. The only thing I've found is this, and it's ugly:
from collections import Counter
str = "Mary had a little lamb"
counter = Counter(str)
print counter['a']
print counter['b']
print counter['c']
print counter['d']
print counter['e']
print counter['f']
#etc to z
Is there a simpler way to do this????