updating the wordcount