loop count modify