cargomedia/CM — pull request #1401 by alexispeter (2014-09-05 15:20:23+00:00)
Title: use MongoCollection::count() when not using aggregation

Originally done because of possibly inaccurate results in sharded environments (http://docs.mongodb.org/manual/reference/method/db.collection.count/#sharded-clusters), this approach, unfortunately, is not viable for huge collections, where it will take a few minutes to run in comparison to the milisecond execution time of `collection.count()`.