code: def count(self, value=True):
          
          if value not in (True, False):
              raise ValueError('can only count True or False, not %r' % (value,))
          return bin(self)[2:].count('01'[value])
docs: Returns the number of present/absent members.