counting bits in hufman