title: count number of ones in a given integer
body: <p>How do you count the number of ones in a given integer's binary representation.</p>
  
  <p>Say you are given a number <code>20</code>, which is <code>10100</code> in binary, so number of ones is 2.</p>