Adding the feature to accept words as input filters to get the word count