getbits
count “1”
count “1” improve version