How to get the count of duplicate documents based on a field value?

i have an index of 14 million docs. (2.5 TB). I suspect there are around 2 million duplicates in that. I want to get the exact count of documents which have more than one copy. I want to do this based on a field which we know is unique to all those documents.
( i know the query to get all duplicates. I need a query to get only the count )
like count if min_doc= 2
count if FieldValue>=2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.