dynamic sw8 running as counter