Currently there is no way of determining the number of documents that were returned prior to actually consuming all the documents (by using .toArray() or iterating through .next()). It would be really helpful to provide a count() method that specifies the number of documents in the result.