finish the first version of word count