add step1 word count function