### Question:
DocumentCount extends IndexReadCommandSingleTable<Integer> { @Override public Integer execute(IndexContext context) throws IOException { return context.getIndexReader().numDocs(); }  @Override String getName(); @Override Integer execute(IndexContext context);  }### Answer:
@Test public void documentCountShouldBeAccurate() throws IOException { DocumentCount dc = new DocumentCount(); int docCount = dc.execute(ctx); assertEquals(26, docCount); }