updated wordcount_main