Cisco interview question

Count the set bits in an integer