fix counting bug
Merge pull request #23 from shaform/gh-pages

fix counting bug