
    Design a function that analyzes a student's written submission to determine their proper usage of capitalization by counting the number of uppercase characters in their text response. The function will be used as part of an automated writing assessment system to evaluate students' adherence to formal writing conventions and proper noun capitalization rules.
    

    
def upper_ctr(str):
    """
    Design a function that analyzes a student's written submission to determine their proper usage of capitalization by counting the number of uppercase characters in their text response. The function will be used as part of an automated writing assessment system to evaluate students' adherence to formal writing conventions and proper noun capitalization rules.
    

    """
def upper_ctr(str):
    """
    Design a function that analyzes a student's written submission to determine their proper usage of capitalization by counting the number of uppercase characters in their text response. The function will be used as part of an automated writing assessment system to evaluate students' adherence to formal writing conventions and proper noun 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