how to count assembly features in VB.net

hi

right now i'm creating an add-on in SW 2012 to count the features in assembly using vb.net 2010

and now i'm stuck in counting assembly features, i.e. weld, belt, line pattern, circular pattern, fillet, chamfer, hole wizard, etc

could somebody please show me how to do that? i've already search in solidworks api help but i had no idea where to find it

can i do it with the same code in normal feature (part file, not assembly)?

thanks,

SolidworksApi macros