Count repetitions of an array
R, 20 bytes


Is this what you are after?  Uses table to count the occurrences of each of the scan input values.  Tests if count is > 1 and sums the trues.

sum(table(scan())&gt;1)


Try it online!