clear and modify wordcount