Dimensions > Dimensions Assembly Interfaces > IDimensionSet > IDimensionSet.Count
Count: Integer;
The Count property returns the number of dimensions.
See also:
IDimensionSet