code: public long countAvailablePublications()
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.entry(tc, "countAvailablePublications");
  
          int subs = destinationHandler.getSubscriptionIndex().getTotalSubscriptions();
  
          // Need to compensate for subscription reference streams and the proxy
          // reference stream.
          long pubs = -1;
  
          try
          {
              pubs = getStatistics().getAvailableItemCount() - subs - 1;
          } catch (MessageStoreException e)
          {
              // FFDC
              FFDCFilter.processException(
                                          e,
                                          "com.ibm.ws.sib.processor.impl.store.itemstreams.PubSubMessageItemStream.countAvailablePublications",
                                          "1:465:1.74",
                                          this);
  
              SibTr.exception(tc, e);
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.exit(tc, "countAvailablePublications", Long.valueOf(pubs));
  
          return pubs;
      }
docs: Count the available publications.
  
  @return Number of available publications.