Pregunta de entrevista de Amazon

Write a program to count the bits in an int.