
    Design a function for a credit card fraud detection system that analyzes a customer's historical transaction records and determines how many times a specific transaction amount has been repeated. The function should accept an immutable sequence of past transaction amounts and a target amount to monitor, then return the total number of occurrences of that amount in the transaction history.
    

    
def count_X(tup, x):
    """
    Design a function for a credit card fraud detection system that analyzes a customer's historical transaction records and determines how many times a specific transaction amount has been repeated. The function should accept an immutable sequence of past transaction amounts and a target amount to monitor, then return the total number of occurrences of that amount in the transaction history.
    

    """
def count_X(tup, x):
    """
    Design a function for a credit card fraud detection system that analyzes a customer's historical transaction records and determines how many times a specific transaction amount has been repeated. The function should accept an immutable sequence of past transaction amounts and a target amount to monitor, then return the total number of occurrences of that amount in the transaction history.
    

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