If I an given a global, ^G, how can I discover how many subscripts are included?  In other words, how can I determine if the global has 3, 5, 7, ect... or more subscripts?  If I want to $Order through the global I would need to know how many subscripts as I build my code to read the elements, correct?

f  s x1=$o(^G(x1))  d...

f  s x2=$o(^G(x1,x2))  d...

f  s x3=$o(^G(x1,x2,x3)  d...

How can I determine by looking at some type of meta data for a given global, that I have 3, 5, or whatever subscripts?

Please advise,

Thanks...