update wordcount in training