title: JMS Counting the number of pending messages in a topic domain
body: <p>First of all sorry for the new topic created. I did it because unfortunately the others was not very clear to me.</p>
  
  <p><strong>Problem.</strong><br>
  I'd like to know if it's possible to count the number of messages pending in a topic sub/pub. 
  I am using tomcat and activemq in the test enviroment but I am going to use Tibco in the real enviroment. Is there a simple and generic way for do that.</p>
  
  <p><strong>Obs</strong><br> 
  I have already implemented a consumer cliente with pure JMS and it can receive all message from its topic very well. </p>