adding faster count_bits algo.