Count your bits in a Number or in a Buffer