code: def size(self, type=None, failed=False):
          
          return len(self.nodes(type=type, failed=failed))
docs: How many nodes in a network.
  
          type specifies the class of node, failed
          can be True/False/all.