Is there any way in the PDM API to get a count of references?

I am building an app using c# that will act as a library for our commonly used proprietary components.

We have a lot of components, and not everything needs to be added.
I am looking to traverse though my "Standards" folder and for each file, count how many times it is referenced within the vault, and add it to a data table.

I will then sort in DESC order and add the components with the most (where used) references.

I have been trying to figure out how to do this, but havent faced much luck.

Please help me out.

SolidworksApi/macros