How to get in macro the quantity of cut-list items?

Hello.

At first, excuse me for my barbarian English and russian interface.

I have the welded  multibody part. I made the drawing and want to get the number of cut-list items in part in view. As you can see different cut-list items can contain as one body and several bodies.

I can get the number of bodies with command swView.GetBodiesCount.

But I want to find the count of unique bodies(i.e. items). In my case this count =17.

Thank you.

SolidworksApi macros