
    In an automated essay grading system, develop a function that evaluates student writing samples by counting how many letters in the text appear in the same position as they would in the standard alphabet sequence (where 'a' or 'A' would match position 1, 'b' or 'B' would match position 2, and so on). This analysis helps assess students' unconscious pattern formation in their writing style.
    

    
def count_char_position(str1):
    """
    In an automated essay grading system, develop a function that evaluates student writing samples by counting how many letters in the text appear in the same position as they would in the standard alphabet sequence (where 'a' or 'A' would match position 1, 'b' or 'B' would match position 2, and so on). This analysis helps assess students' unconscious pattern formation in their writing style.
    

    """
def count_char_position(str1):
    """
    In an automated essay grading system, develop a function that evaluates student writing samples by counting how many letters in the text appear in the same position as they would in the standard alphabet sequence (where 'a' or 'A' would match position 1, 'b' or 'B' would match position 2, and so on). This analysis helps assess students' unconscious pattern formation in their writing style.
    

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