Update the word count when loading txts