Initialise counter variable