counts all letters in a string