Added a FSM counter