finding the number of 1's in an integer