human
Write a python function to count number of digits in a given string. Here is a solution in Python:
What is a the Python program you requested?
assistant
#Here is the Python program you requested.
 def number_ctr(str):
      number_ctr= 0
      for i in range(len(str)):
          if str[i] >= '0' and str[i] <= '9': number_ctr += 1     
      return  number_ctr