[ASFXNB477] Reimplement distinctCount

* Different return format
* Use MongoConnection::aggregate(), bypassing Monga