RUBY-596 Get count of documents in a collection