Number of set Bits in a given number

How can we find, whether a number has even number of set bits or odd number of set bits.