It was a copy&paste from MongoCollection->count().. didn't want to do any prettifying on it to make it obvious its exactly the same code so we can easily refactor it later