
    Write a function that analyzes a sequence of customer transactions and determines how many times a specific suspicious transaction amount appears in the transaction history. The transaction history is stored as an immutable sequence to maintain data integrity during fraud analysis, and the function should return the total count of occurrences for the monitored transaction value.
    

    
def count_X(tup, x):
    """
    Write a function that analyzes a sequence of customer transactions and determines how many times a specific suspicious transaction amount appears in the transaction history. The transaction history is stored as an immutable sequence to maintain data integrity during fraud analysis, and the function should return the total count of occurrences for the monitored transaction value.
    

    """
def count_X(tup, x):
    """
    Write a function that analyzes a sequence of customer transactions and determines how many times a specific suspicious transaction amount appears in the transaction history. The transaction history is stored as an immutable sequence to maintain data integrity during fraud analysis, and the function should return the total count of occurrences for the monitored transaction value.
    

    """
    count = 0
    for ele in tup:
        if ele == x:
            count = count + 1
    return count