
    Create a function that analyzes a student's written response by counting the number of capital letters used, helping teachers evaluate proper capitalization usage in academic writing. The function should process any text submission and return the total count of uppercase characters to assess the student's adherence to capitalization rules.
    

    
def upper_ctr(str):
    """
    Create a function that analyzes a student's written response by counting the number of capital letters used, helping teachers evaluate proper capitalization usage in academic writing. The function should process any text submission and return the total count of uppercase characters to assess the student's adherence to capitalization rules.
    

    """
def upper_ctr(str):
    """
    Create a function that analyzes a student's written response by counting the number of capital letters used, helping teachers evaluate proper capitalization usage in academic writing. The function should process any text submission and return the total count of uppercase characters to assess the student's adherence to capitalization rules.
    

    """
    upper_ctr = 0
    for i in range(len(str)):
        if str[i] >= 'A' and str[i] <= 'Z':
            upper_ctr += 1
        return upper_ctr