Fixed counter printing bug