title: Count the number of set bits in a 32-bit integer
body: <p>8 bits representing the number 7 look like this:</p>
  <pre><code>00000111
  </code></pre>
  <p>Three bits are set.</p>
  <p>What are the algorithms to determine the number of set bits in a 32-bit integer?</p>