Changes the loop count