Implement a bitwise operation to count the number of set bits in an integer.
Implement count_set_bits(n), which receives a non-negative 32-bit integer and returns the number of 1 bits in its binary representation. Use bitwise operations rather than converting the integer to a string.
def count_set_bits(n):