db.collection.distinct('field').length
Db.collection.distinct('searchField')
db.inventory.distinct( "item.sku", { dept: "A" } )