Implement a query option "countOutput" of NoSQL version of
history.get() and add a test for it. The test fails against
SQL version because it has a bug. I'll contribute a patch
to the upstream later.