Pergunta de entrevista da empresa Garmin

Given a integer how many binary ones are in the number.