How to calculate cut hole number with API?

In Sketch, drawing circle.

help me , with API method.

how to calculate cut hole number

SolidworksApi macros