rough draft of the number of ones in a bit representation of an integer