
    Write a function that analyzes a route status code to determine how many different conditions are actively affecting a delivery route, where the status code is a binary number with each 1 bit representing a distinct active condition (such as traffic, weather, or construction). The count of active conditions (1 bits) will help the system assess the complexity of rerouting decisions needed for the delivery truck.
    

    
def count_Set_Bits(n):
    """
    Write a function that analyzes a route status code to determine how many different conditions are actively affecting a delivery route, where the status code is a binary number with each 1 bit representing a distinct active condition (such as traffic, weather, or construction). The count of active conditions (1 bits) will help the system assess the complexity of rerouting decisions needed for the delivery truck.
    

    """
def count_Set_Bits(n):
    """
    Write a function that analyzes a route status code to determine how many different conditions are actively affecting a delivery route, where the status code is a binary number with each 1 bit representing a distinct active condition (such as traffic, weather, or construction). The count of active conditions (1 bits) will help the system assess the complexity of rerouting decisions needed for the delivery truck.
    

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