Solve homework2-problem7: Count of Bits One