code: def getOutputElementCount(self, name):
      
      if name in ["activeCells", "predictedCells", "predictedActiveCells",
                  "winnerCells"]:
        return self.cellsPerColumn * self.columnCount
      else:
        raise Exception("Invalid output name specified: %s" % name)
docs: Return the number of elements for the given output.