Fix bug in issue #3, counter value incorrect
Merge pull request #4 from commadelimited/fix-count-bug

Fix bug in issue #3, counter value incorrect