Initialise counter