Pregunta de entrevista de Garmin

Given an integer, write a function that returns the count of bits in an integer.