In a list, they are many items, and some of them can occur more than once. How can I get the number of those items which occur multiple times in a list, in Python? For example, in below list, a and b occur multiple times. So in this case, I get two.
list = [ 'a', 'b', 'a', 'b', 'c', 'd', 'e', 'a', 'b', 'h', 'u', 'i', 'x', 'b', 'e', 'h', 'j', 'w' ]