Getting QTY of parts in Assembly

Does anyone know how to get the quantity of parts in an assembly without having to open the assembly.  We are using PDMWorks WorkGroup.  I do also have all the assemblies on an excel spreedsheet.

Any help would be great!

Rodney

SolidworksApi macros