code: def _count_righthand_zero_bits(number, bits):
      
      if number == 0:
          return bits
      return min(bits, _compat_bit_length(~number & (number - 1)))
docs: Count the number of zero bits on the right hand side.
  
      Args:
          number: an integer.
          bits: maximum number of bits to count.
  
      Returns:
          The number of zero bits on the right hand side of the number.