
    Write a function that validates a passenger's ride-share ID by counting how many characters in the ID appear in the same position as they would in the alphabet (ignoring case), which serves as a quick verification step in the passenger-driver matching process. For example, in a passenger ID "ABCDEF", 'A' is in position 1, 'B' is in position 2, etc.
    

    
def count_char_position(str1):
    """
    Write a function that validates a passenger's ride-share ID by counting how many characters in the ID appear in the same position as they would in the alphabet (ignoring case), which serves as a quick verification step in the passenger-driver matching process. For example, in a passenger ID "ABCDEF", 'A' is in position 1, 'B' is in position 2, etc.
    

    """
def count_char_position(str1):
    """
    Write a function that validates a passenger's ride-share ID by counting how many characters in the ID appear in the same position as they would in the alphabet (ignoring case), which serves as a quick verification step in the passenger-driver matching process. For example, in a passenger ID "ABCDEF", 'A' is in position 1, 'B' is in position 2, etc.
    

    """
    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