Count Repeated Elements In Array Python