count 1 bits in x