code: public long getNumberOfQueuedMessages()
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.entry(tc, "getNumberOfQueuedMessages");
  
      long total = 0;
      try
      {
        total = referenceItemStream.getStatistics().getTotalItemCount();
      }
      catch (MessageStoreException e)
      {
        FFDCFilter.processException(
            e,
            "com.ibm.ws.sib.processor.runtime.LocalSubscriptionControl.getNumberOfQueuedMessages",
            "1:422:1.36", 
            this);
        
        SibTr.exception(tc, e);
      }
      
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())             
        SibTr.exit(tc, "getNumberOfQueuedMessages", new Long(total));
      return total;
    }
docs: /* (non-Javadoc)
  @see com.ibm.ws.sib.processor.runtime.SIMPLocalSubscriptionControllable#getNumberOfQueuedMessages()