Python Count Elements In Array With 3