removed bit counting