update wordcount