created wordCounter function and spec, passed first test
merge