more general wordsCount