def _count_righthand_zero_bits(number, bits):
if number == <NUM_LIT:0>:<EOL><INDENT>return bits<EOL><DEDENT>return min(bits, _compat_bit_length(~number & (number - <NUM_LIT:1>)))<EOL>
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.