Alphabet count without a dictionary