This is getColorSchemeItemCount, a member of class OdDgDisplayStyleLegendXAttribute.
OdDgDisplayStyleLegendXAttribute Methods