Update counter to restart counting after it reaches 8