Question d’entretien chez Amazon

Write a program to count the bits in an int.