Scripts for counter