add fsm counter alternative