code: public long getNumDocs() {
          Log.debug("Getting num docs");
          try {
              IndexSearcher searcher = searcherManager.acquire();
              try {
                  return searcher.getIndexReader().numDocs();
              } finally {
                  searcherManager.release(searcher);
              }
          } catch (IOException e) {
              Log.error(e, "Error while getting num docs");
              throw new RuntimeException(e);
          }
  
      }
docs: Returns the total number of {@link Document}s in this index.
  
  @return The total number of {@link Document}s in this index.