count the occurences of a letter in a string