Do you want this as a security feature, to stop anyone ever printing more than 10, or do you want it just as a reminder to yourself that 10 have been printed?
If you want to make it secure you may have to take more steps - such as stop anyone else having access to that layout. (Although people can always photocopy existing permits...)
You could add two fields to each Resident's record:
If I assume that you mean in a calendar month they can only have 10 prints, then you can set the script to check, before it goes through the printing steps, if:
PrintCountThisMonth < 10
Year (Get (CurrentDate ) = Year ( DateLastPrinted )
Month (Get (CurrentDate ) = Month ( DateLastPrinted )
If that test is passed, print the permit and then set those two fields at the end of the script:
PrintCountThisMonth = PrintCountThisMonth + 1
DateLastPrinted = Get (CurrentDate )
At the start of the script you should also re-set the fields if the month of the last print is not the same as the month now - the print count would be reset to 0, as it is a new month.
I haven't tested any of that, of course!
Thanks!! a lot I really appresiated I will give it a try thanks again