finish doc for wordcount