Correct property to count an event until another event happens

In reply to Shubhabrata:

Hi thanks for your reply!

Your code is not working for me. At least my tool says that the go-to repetition operator only accepts boolean values.