code: public Long getNodesCount() throws RepositoryException
     {
        WorkspaceStorageConnection conn = connFactory.openConnection();
        try
        {
           return conn.getNodesCount();
        }
        finally
        {
           conn.close();
        }
     }
docs: {@inheritDoc}