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