Fix negative counter number issue
Merge pull request #3 from Frederick-S/master

Fix negative counter number issue