Count how many 1's in a given number.