initial commit of wordcount function