So you wait many candles for a condition to happen. I know this is easier to imagine, we just see things better like this "wait for something to happen and then do this". But we already have candles in the past, so normally (and if possible) the EA should look at the past candles. I mean, why counting something every candle while waiting for a condition, when you can detect the condition at the present moment and count the candles in the past.
But it depends what you actually want to do, because in the EA builder it's sometimes easier to increment variables. There are not many blocks who can look at the past multiple candles and extract some signal out of them.