Completed version 1 of word-count