Count Same Elements In Array Python Methods That Only Takes