Can your printer handle up to 500 single print commands? If so, I might be tempted to use the count in the loop (in a variable) and 'count-down' until there are no more, then exit loop.
Set Variable ( $counter ; mycounterfield )
Exit loop if ( $counter = 0 )
Set Variable ( $counter ; $counter - 1 // subtract 1 each time! )
The loop will stop before printing if the $counter gets to 0.
Yes, sorry, I forgot to show your looping the records. I would put that as an "outer loop" around mine. And I don't use the "Exit after last" as it can show an "error" in the server logs. Rather I do this:
Go To Record/Request (first)
Set Variable ( $counter ; Amount of Labels ) // because you have a NEW record with possible different values)
... inner loop for printing goes here ...
Exit Loop if ( Get ( FoundCount ) = Get ( RecordNumber ) // it will stop once you process the LAST record )
Go To Record/Request (next) // will NOT be called if you exit!
Notice how the $counter is set for the first record and AFTER each new loop. The variable will be correct in that record and the inner loop can use it for the "countdown".