A rightclick function that has only 20 uses.

I have implemented a right click function already but I'm wondering on how to make it so that, after 20 uses of the right click, the item breaks. Please guide.
Continue to help post