<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def nRows(self):
 """returns maximum number of rows based on the longest colData"""

        if self.nCols: return max([len(x) for x in self.colData])
        else: return 0