
    Create a function that analyzes transaction messages to count the number of uppercase characters, which represent critical banking codes and security flags, to help identify high-priority alerts in the transaction monitoring system. The function should process transaction messages containing mixed-case characters and return the total count of uppercase characters found. This analysis helps in quickly assessing the number of critical markers present in a transaction message for risk evaluation.
    

    
def upper_ctr(str):
    """
    Create a function that analyzes transaction messages to count the number of uppercase characters, which represent critical banking codes and security flags, to help identify high-priority alerts in the transaction monitoring system. The function should process transaction messages containing mixed-case characters and return the total count of uppercase characters found. This analysis helps in quickly assessing the number of critical markers present in a transaction message for risk evaluation.
    

    """
def upper_ctr(str):
    """
    Create a function that analyzes transaction messages to count the number of uppercase characters, which represent critical banking codes and security flags, to help identify high-priority alerts in the transaction monitoring system. The function should process transaction messages containing mixed-case characters and return the total count of uppercase characters found. This analysis helps in quickly assessing the number of critical markers present in a transaction message for risk evaluation.
    

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