How can I get a count of the instances of an arbitrary class?
<p>Given a class (ex: foo.bar.MyClass), how can I get a count of the number of instances of that class existing within the JVM?  </p>

<p>Thanks</p>

<p>EDIT:  I'm looking for the code that will retrieve this count.</p>

<p>EDIT:  More specifically, an implementation of the method <code>Integer getInstanceCount(Class c)</code></p>
