Count Different Elements In Array Python