Counts duplicates