
    Given a binary traffic status map where each bit represents a route segment's condition (1 for congested/blocked, 0 for clear), develop a function that determines the total number of congested segments in the delivery network. The traffic status is provided as a single integer whose binary representation indicates the state of all monitored route segments.
    

    
def count_Set_Bits(n):
    """
    Given a binary traffic status map where each bit represents a route segment's condition (1 for congested/blocked, 0 for clear), develop a function that determines the total number of congested segments in the delivery network. The traffic status is provided as a single integer whose binary representation indicates the state of all monitored route segments.
    

    """
def count_Set_Bits(n):
    """
    Given a binary traffic status map where each bit represents a route segment's condition (1 for congested/blocked, 0 for clear), develop a function that determines the total number of congested segments in the delivery network. The traffic status is provided as a single integer whose binary representation indicates the state of all monitored route segments.
    

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