
    Design a function for the bank's fraud detection system that determines how many risk indicators are currently active in a transaction by counting the number of triggered flags in its binary risk pattern. Each '1' in the binary pattern represents an active fraud indicator such as unusual location, amount threshold breach, or suspicious timing, and the total count helps assess the transaction's overall risk level.
    

    
def count_Set_Bits(n):
    """
    Design a function for the bank's fraud detection system that determines how many risk indicators are currently active in a transaction by counting the number of triggered flags in its binary risk pattern. Each '1' in the binary pattern represents an active fraud indicator such as unusual location, amount threshold breach, or suspicious timing, and the total count helps assess the transaction's overall risk level.
    

    """
def count_Set_Bits(n):
    """
    Design a function for the bank's fraud detection system that determines how many risk indicators are currently active in a transaction by counting the number of triggered flags in its binary risk pattern. Each '1' in the binary pattern represents an active fraud indicator such as unusual location, amount threshold breach, or suspicious timing, and the total count helps assess the transaction's overall risk level.
    

    """
    count = 0
    while n:
        count += n & 1
        n >>= 1
    return count