meteor/meteor — pull request #542 by rep (2012-12-12 16:10:58+00:00)
Title: add count command support in mongo-livedata package

Support the count command on mongo collections. If one needs the amount of documents in a collection, find().count() is no viable way as it actually pulls the documents' data.

The actual code is taken from the ensureIndex function, just added returning the result. It won't work on the client however, as the underlying minimongo does not have the respective count method. I assume that there's a way to pass this on to the server but I'm not deep enough into meteor's code to implement this.