Get Extrude or Revolved Surface count

Can anybody help?

I have a solidworks part (sldprt) open.

I want to check if the part contains more than one "extrude" or "revolved" features.

Does anybody know how to do this with a SolidWorks macro?

All I need to do at present is to put the value in a message box

eg:

Number of extruded features = 4

Many thanks in advance!!!

Darren

SolidworksApi macros