Improved total words calculation
Merge pull request #12 from stevelacey/patch-1

Improved total words calculation