I see. So I can say "M98 P1000 L5" and repeat a subroutine 5 times.
I want to pocket out something by having an end-mill go around it and then having Z go 0.100 down, and repeating 5 times.
I wrote the path around the pocket as a subroutine and I am currently callling that 5 times sequentially, but I thought it would be nicer to have a loop which exits after some counter reaches 5.