## Number of Ones in Binary

Given a number as input, write a program that will find the binary representation of the number and print the number of 1 bits in that representation. For example, the number 17 in binary is 10001. This has three 0 bits and two 1 bits so the output should be 2.

Example 1:

```
input data:
15
output:
4
```

Example 2:

```
input data:
61
output:
5
```

**View Java Solution**