Python Count Elements In Array Python Definition