<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_generality(key, mask):
 """Count the number of Xs in the key-mask pair. For example, there are 32 Xs in ``0x00000000/0x00000000``:: 32 And no Xs in ``0xffffffff/0xffffffff``:: 0 """

    xs = (~key) & (~mask)
    return sum(1 for i in range(32) if xs & (1 << i))