Count the amount of ones in the binary representation of an integer. For example, since 12 is 1100 in binary, the return value should be 2.
count_ones(0) ➞ 0
count_ones(100) ➞ 3
count_ones(999) ➞ 8
The input will always be a valid integer (number).