Count Elements In An Array Python