Limit Key Press

Hey I was wondering if there is a way to limit the amount of key presses that can be used. In my case I have a grappling hook that is bind to the G key but I want the player to only be able to use it 3 times during the whole level. Thanks

You can use a Do N node after your input.

Great answer Jacky, I looked at about 8 different solutions and most used TICK, but the DoN is easier and more efficient.