Count Duplicate Element In Python