Leetcode 856 Python Count Elements In An Array