Python Count Elements In Array With Division