Adding a word counter to allow us to calculate a single key word at a time.