Added in a max word count to prevent files that are too large from being read completely