Count the number of ones in the binary representation of a given integer.
An integer.
An integer representing the count of ones in the binary representation of the input.
9
2
The binary representation of 9 is 1001, which includes 2 ones.
Count the number of ones in the binary representation of a given integer.
An integer.
An integer representing the count of ones in the binary representation of the input.
9
2
The binary representation of 9 is 1001, which includes 2 ones.