Python Count Elements In Array