Implement query-based count method, starting with Mongo
Implement `count` for memory/filesystem
Implement `count` for other MR stores