
    In a social media platform's friend recommendation system, develop a function that calculates an authenticity score by counting how many characters in a user's profile name appear in positions that match their natural alphabetical positions (where 'a'=1, 'b'=2, etc.). The matching should be case-insensitive, and this score will contribute to the platform's user matching algorithm.
    

    
def count_char_position(str1):
    """
    In a social media platform's friend recommendation system, develop a function that calculates an authenticity score by counting how many characters in a user's profile name appear in positions that match their natural alphabetical positions (where 'a'=1, 'b'=2, etc.). The matching should be case-insensitive, and this score will contribute to the platform's user matching algorithm.
    

    """
def count_char_position(str1):
    """
    In a social media platform's friend recommendation system, develop a function that calculates an authenticity score by counting how many characters in a user's profile name appear in positions that match their natural alphabetical positions (where 'a'=1, 'b'=2, etc.). The matching should be case-insensitive, and this score will contribute to the platform's user matching algorithm.
    

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