code: def traceCount(self):
          
          nsegs = sum([len(track) for track in self._segments])
          if nsegs == 0:
              return 0
          ntraces = 1
          for irow in range(self._autoParams.nrows()):
              ntraces = ntraces*self._autoParams.numSteps(irow)
          return ntraces
docs: The number of unique stimului for this stimulus object
  
          :returns: int -- The expanded trace count