how to get count of unqiue values from multiple mongodb documents code example Example: mongodb count distinct db.collection.distinct('field').length