
    Write a function that analyzes parking space identification codes to determine priority zones by counting how many letters in the code appear in their natural alphabetical positions (where 'A'=1, 'B'=2, etc.), regardless of case, ignoring any numbers or special characters in the code. This information helps optimize the dynamic allocation of parking spaces in high-demand urban areas.
    

    
def count_char_position(str1):
    """
    Write a function that analyzes parking space identification codes to determine priority zones by counting how many letters in the code appear in their natural alphabetical positions (where 'A'=1, 'B'=2, etc.), regardless of case, ignoring any numbers or special characters in the code. This information helps optimize the dynamic allocation of parking spaces in high-demand urban areas.
    

    """
def count_char_position(str1):
    """
    Write a function that analyzes parking space identification codes to determine priority zones by counting how many letters in the code appear in their natural alphabetical positions (where 'A'=1, 'B'=2, etc.), regardless of case, ignoring any numbers or special characters in the code. This information helps optimize the dynamic allocation of parking spaces in high-demand urban areas.
    

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