Database

[{"Location":"Address 1"},{"Location":"Address 1"},{"Location":"Address 1"},{"Location":"Address 2"},{"Location":"Address 3"}]

Query

db.collection.aggregate([{"$group":{"_id":null,"unique_locations":{"$addToSet":"$Location"}}},{"$project":{"total_unique":{"$size":"$unique_locations"}}}])

Result