# credit to Stack Overflow user in source link >>> def count_zeros(number): ... return str(number).count('0') ... >>> count_zeros(49690101904335902069) 5