Joe,
You could use DCOUNT to do this, DCOUNT(ARRAY,@AM) for example will count the number of attributes in the array. DCOUNT(ARRAY<2>,@VM) would count the number of mulitvalues in attribute 2.
If you just want to parse the array you could use REMOVE to do this as you do not need to know the number of elements in an array to use REMOVE to process the whole array.
Thanks,