Keep a lap counter when running a loop