<p>Write a function that takes the binary representation of an unsigned integer and returns the number of '1' bits it has (also known as the <ahref="http://en.wikipedia.org/wiki/Hamming_weight"target="_blank">Hamming weight</a>).</p>
<li>Note that in some languages, such as Java, there is no unsigned integer type. In this case, the input will be given as a signed integer type. It should not affect your implementation, as the integer's internal binary representation is the same, whether it is signed or unsigned.</li>
<li>In Java, the compiler represents the signed integers using <ahref="https://en.wikipedia.org/wiki/Two%27s_complement"target="_blank">2's complement notation</a>. Therefore, in <strongclass="example">Example 3</strong>, the input represents the signed integer. <code>-3</code>.</li>