
    Given a user's interest profile represented as a binary number where each bit position corresponds to a specific interest category (1 for interested, 0 for not interested), write a function that determines the total number of interests the user has selected. The function should help in calculating user similarity scores for the friend recommendation system by counting how many interests are actively marked in their profile.
    

    
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 interested, 0 for not interested), write a function that determines the total number of interests the user has selected. The function should help in calculating user similarity scores for the friend recommendation system by counting how many interests are actively marked in their profile.
    

    """
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 interested, 0 for not interested), write a function that determines the total number of interests the user has selected. The function should help in calculating user similarity scores for the friend recommendation system by counting how many interests are actively marked in their profile.
    

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