Intel Corporation interview question

write a code to count how many zeros there are in a number in binary representation