Garmin interview question

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