human
Write a python function to count the upper case characters in a given string. Here is a solution in Python:
assistant
#Here is the Python program you requested.
 def upper_ctr(str):
    upper_ctr = 0
    for i in range(len(str)):
          if str[i] >= 'A' and str[i] <= 'Z': upper_ctr += 1
          return upper_ctr