In reply to suresh M:
It will work for reset condition. BUt it will not work for counter functionality