In reply to MadhukarN:
You need to create a local down counter:
Since you are starting at 0, you could probably simplify it.
In reply to MadhukarN:
You need to create a local down counter:
Since you are starting at 0, you could probably simplify it.