Does anyone have a macro for counting holes in a full shape part?

I am looking to count holes in custom details

Not sure of the best way to do this

Some holes will be in non planar surfaces

Having issues not including fillets & rads - do not want these to count

SolidworksParts And Features