How to make an App expire/stop working after X uses

Hi..

How can I make an App expire - stop working after X amount of uses. And have the user re-purchase the app?

I can add a counter to the app and disable the app after X amount of uses - and prompt them to purchase again.


If they already have bought the app, will it allow another purchase? I'm trying to avoid having to code for IAP.


Any suggestions and advice? thx in advance!