Is there a way an easier way of counting visible repeat rows?

I have a repeat and I have a hide condition if a repeat record meets a certain criteria lets say value = 1

Before I embark on complex algorithm to count the number of visible rows based on the same hide condition criteria, is there a way of just count visible repeat record rows?

Thanks!

You should be able to use the length property. Path to that repeat element then .length

Something like

repeat1.length

If you have trouble figuring out the full path, use dmx.app.data to see where the repeat sits in the hierarchy.