Length of IWS array tag?

I need to get the length of an IWS array tag or Aveva Edge project tag using VBScript. I have been trying "UBound()" but it only works for VBScript variables. I have looked for a built-in function but didn't find anything.

Any help?