code: def num_inputs(self):
          
  
          num = 0
  
          for walker, _ in self.inputs:
              if not isinstance(walker, InvalidStreamWalker):
                  num += 1
  
          return num
docs: Return the number of connected inputs.
  
          Returns:
              int: The number of connected inputs