How can I find the number of duplicates in each document in Java-MongoDB I have collection like this. Collection example:
{ "_id": { "$