Count All Digits Of A Number Leetcode Solutions Python