I know how can I find the number of duplicates from a numpy array. However, I need to find the number of duplicates only at the end of the numpy array. Please see my example below:
Example input is as follows:
1995
1996
1996
1997
1998
1999
1999
1999
Desired output:
3
Thanks in advance!