### Question:
DocumentCountCombiner extends ClusterExecuteServerReadCommandSingleTable<Long> { @Override public Long execute(IndexContext context) throws IOException { return (long) context.getIndexReader().numDocs(); }  @Override String getName(); @Override Long execute(IndexContext context); @Override Long combine(CombiningContext context, Map<? extends Location<?>, Long> results); @Override Long clusterExecute(ClusterContext context);  }### Answer:
@Test public void documentCountShouldBeAccurate() throws IOException { DocumentCountCombiner dc = new DocumentCountCombiner(); long docCount = dc.execute(ctx); assertEquals(26, docCount); }