Update wordcount function
Update wordcount function