
    Given a user's interest profile represented as a binary number where each bit position corresponds to a specific interest category (1 for having the interest, 0 for not having it), write a function that counts the total number of interests the user has by calculating the number of 1s in their binary profile. The count will be used to determine the user's engagement level for the friend recommendation system.
    

    
def count_Set_Bits(n):
    """
    Given a user's interest profile represented as a binary number where each bit position corresponds to a specific interest category (1 for having the interest, 0 for not having it), write a function that counts the total number of interests the user has by calculating the number of 1s in their binary profile. The count will be used to determine the user's engagement level for the friend recommendation system.
    

    """
def count_Set_Bits(n):
    """
    Given a user's interest profile represented as a binary number where each bit position corresponds to a specific interest category (1 for having the interest, 0 for not having it), write a function that counts the total number of interests the user has by calculating the number of 1s in their binary profile. The count will be used to determine the user's engagement level for the friend recommendation system.
    

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