Sample code for CMStepCounter