How to get the Fill Pattern’s Count?

Hi all,

I need to get the Fill Pattern’s Count(or number). How I can do this?

Thanks for your help.

SolidworksApi macros