def componentCount(self):
        """Returns the total number of components in stimulus

        :returns: number of components (not including expanded auto-params)
        """
        return sum([self.columnCountForRow(x) for x in range(self.rowCount())])
Returns the total number of components in stimulus

        :returns: number of components (not including expanded auto-params)