Python Count Repeated Elements In Array