code: def getGraphFieldCount(self, graph_name):
          
          graph = self._getGraph(graph_name, True)
          return graph.getFieldCount()
docs: Returns number of fields for graph with name graph_name.
          
          @param graph_name: Graph Name
          @return:           Number of fields for graph.