sum . map solution in Clear category for Count Digits by Adherent
def count_digits(text): return sum(map(str.isdigit, text))
April 18, 2020