Intel Corporation interview question

write a program to count set bits in number