LoopSum nth instance

Perhaps I'm overlooking something obvious but is there a way to reference a particular instance counted by LoopSum?

For example the number of bars since the 3rd time there was a moving average crossover in the last 200 bars?

The workaround using the break parameter is nifty but it only seems to work for the first instance. Is there a way to easily use LoopSum to reference the 2nd, 3rd, 4th, etc. occurrence?