<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getOutputElementCount(self, name):
 """ Returns the size of the output array """

    if name in ["activeCells", "learnableCells", "sensoryAssociatedCells"]:
      return self.cellCount * self.moduleCount
    else:
      raise Exception("Invalid output name specified: " + name)