Dimensions > Dimensions Assembly Interfaces > IDimAttributes > IDimAttributes.Count
Count: Integer;
The Count property returns the number of dictionary attributes.
See also:
IDimAttributes