Launch projector limited amount of times

Launch projector limited amount of times

Is there a script that counts how many time a projector has been open?
I’m looking to make a demo projector that can only open a project 1, 2 or 3 times.