Hi,
I have downloaded and check your code. It seems to work well.
There is one more thing: when there is word with a capital letter then this word doesn’t take place in the count. For example if in a phrase appears the words: Test test test,then the code does not count 3.
Is this right in terms of Google regulations?