We know how to listen to an event now.
But how can we stop listening to this
event after a while?
In the following example, click
multiple times on the button.
You'll see that it stops to work
after 3 clicks.
So, using a counter that keeps a track
of how many times the event was fired
can help.