Frage im Vorstellungsgespräch bei Garmin

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