
    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 to count the total number of interests the user has selected. This count will be used to calculate similarity scores 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 interested, 0 for not interested), write a function to count the total number of interests the user has selected. This count will be used to calculate similarity scores 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 interested, 0 for not interested), write a function to count the total number of interests the user has selected. This count will be used to calculate similarity scores for the friend recommendation system.
    

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