
    Design a function for the bank's loan assessment system that analyzes an applicant's historical credit score sequence and determines how many times a specific risk threshold value appears in their credit history. The function should accept the applicant's historical credit scores as a tuple and the risk threshold value as parameters, returning the total number of times the threshold was met or exceeded in the applicant's history.
    

    
def count_X(tup, x):
    """
    Design a function for the bank's loan assessment system that analyzes an applicant's historical credit score sequence and determines how many times a specific risk threshold value appears in their credit history. The function should accept the applicant's historical credit scores as a tuple and the risk threshold value as parameters, returning the total number of times the threshold was met or exceeded in the applicant's history.
    

    """
def count_X(tup, x):
    """
    Design a function for the bank's loan assessment system that analyzes an applicant's historical credit score sequence and determines how many times a specific risk threshold value appears in their credit history. The function should accept the applicant's historical credit scores as a tuple and the risk threshold value as parameters, returning the total number of times the threshold was met or exceeded in the applicant's history.
    

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