I would like to ask how to count the total number of elements which has duplicated in Python?
For example
Input: [1,2,2,3,4,4,5,6,7]
Output: 2 (because