use MongoCollection::count() when not using aggregation
Merge pull request #1401 from alexispeter/mongo-count-performance-fix

use MongoCollection::count() when not using aggregation