changed to using filter in word count, cleaner