title: OQL syntax for counting objects matching criteria
body: <p>how can I count objects in Eclipse MAT using OQL syntax?
  This doesn't work :</p>
  
  <pre>
  SELECT count(a) FROM org.hibernate.engine.EntityEntry a <br>WHERE (toString(a.entityName)="my.pojo")
  </pre>
  
  <p><i> (I want to count the number of hibernate pojos loaded into memory)</i></p>
  
  <p>There must be a very quick way to do so...Thanks for helping me out !</p>