count occurences of words or characters in text