<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rowCount(self, parent=None):
 """ The number of rows of the sliced array. The 'parent' parameter can be a QModelIndex. It is ignored since the number of rows does not depend on the parent. """

        if self._separateFieldOrientation == Qt.Vertical:
            return self._nRows * len(self._fieldNames)
        else:
            return self._nRows