
    In a social networking platform, determine the number of strong mutual connections between users where both users have explicitly shown interest in connecting with each other. Given a list of user connection pairs, count how many bidirectional connections exist where if user A has shown interest in user B, user B has also shown interest in user A.
    

    
def count_bidirectional(test_list):
    """
    In a social networking platform, determine the number of strong mutual connections between users where both users have explicitly shown interest in connecting with each other. Given a list of user connection pairs, count how many bidirectional connections exist where if user A has shown interest in user B, user B has also shown interest in user A.
    

    """
def count_bidirectional(test_list):
    """
    In a social networking platform, determine the number of strong mutual connections between users where both users have explicitly shown interest in connecting with each other. Given a list of user connection pairs, count how many bidirectional connections exist where if user A has shown interest in user B, user B has also shown interest in user A.
    

    """
    res = 0
    for idx in range(0, len(test_list)):
        for iidx in range(idx + 1, len(test_list)):
            if test_list[iidx][0] == test_list[idx][1] and test_list[idx][1] == test_list[iidx][0]:
                res += 1
    return res