
    Write a function that analyzes delivery route identifier codes to determine how many characters match their alphabetical positions, where matches indicate priority delivery zones in the fleet management system. For example, in a route code "ABCD", both 'A' and 'B' would count as matches since they appear in positions 1 and 2 respectively, helping dispatchers quickly identify high-priority delivery sectors.
    

    
def count_char_position(str1):
    """
    Write a function that analyzes delivery route identifier codes to determine how many characters match their alphabetical positions, where matches indicate priority delivery zones in the fleet management system. For example, in a route code "ABCD", both 'A' and 'B' would count as matches since they appear in positions 1 and 2 respectively, helping dispatchers quickly identify high-priority delivery sectors.
    

    """
def count_char_position(str1):
    """
    Write a function that analyzes delivery route identifier codes to determine how many characters match their alphabetical positions, where matches indicate priority delivery zones in the fleet management system. For example, in a route code "ABCD", both 'A' and 'B' would count as matches since they appear in positions 1 and 2 respectively, helping dispatchers quickly identify high-priority delivery sectors.
    

    """
    count_chars = 0
    for i in range(len(str1)):
        if i == ord(str1[i]) - ord('A') or i == ord(str1[i]) - ord('a'):
            count_chars += 1
    return count_chars