C# (Visual C# Interactive Compiler), 40 bytes
The first draft of the spec was unclear, and I thought it mean return all the elements that appear more than once. This is the updated version.
Try it online! Somehow I didn't notice that my code returned the number of elements that appeared once. Thanks to Paul Karam for catching that!