code: def n_subscribers(self):
          
          hard = self.hard_subscribers and len(self.hard_subscribers) or 0
          weak = self.weak_subscribers and len(self.weak_subscribers) or 0
          return hard + weak
docs: Returns the number of connected subscribers.
  
          :rtype:  int
          :returns: The number of subscribers.