Add counter definition code
Merge pull request #93 from master-q/fix/ats2tutorial-misscode

Add counter definition code