update num-of-one-bit