code: @Override
      public long size() throws RepositoryException{
          try {
              MarkLogicTupleQuery tupleQuery = prepareTupleQuery(COUNT_EVERYTHING);
              tupleQuery.setIncludeInferred(false);
              tupleQuery.setRulesets((SPARQLRuleset)null);
              tupleQuery.setConstrainingQueryDefinition((QueryDefinition)null);
              TupleQueryResult qRes = tupleQuery.evaluate();
              // just one answer
              BindingSet result = qRes.next();
              qRes.close();
              return ((Literal) result.getBinding("ct").getValue()).longValue();
          } catch (QueryEvaluationException | MalformedQueryException e) {
              throw new RepositoryException(e);
          }
      }
docs: returns number of triples in the entire triple store
  
  @return long
  @throws RepositoryException