Correct property to count an event until another event happens

In reply to Shubhabrata:

link to your code on edaplaygound?