In above screenshot. Highlighted Workorder are duplicate but they have different DWR. Now my requirement is system will delete the duplicate WO but before that they put the count of DWR which are associated with that work order in Count DWR column.
I have this data in data table.