I have a part of my scripts where I want it to quit only after I type the <Ctrl> c three times instead of just once. In this part of the script if I type <Ctrl> c once it exits the scripts but I want it to exit after three times of <Ctrl> c .
How would I make a global variable to store the number of times <Ctrl> c is used in this part of my script??
Here is my input part: