added method to combine words in word count