Count Same Elements In Array Python Definition