Leetcode 856 Python Count Elements In Tuple