fixed inconsistent word count issue (Github issue #7)