Python Count Elements In Array With No Duplicates