count the letters in a text