human
Write a python function to count the number of set bits (binary digits with value 1) in a given number. Here is a solution in Python:
assistant
#Here is the Python program you requested.
 def count_Set_Bits(n): 
    count = 0
    while (n): 
        count += n & 1
        n >>= 1
    return count