ROWS

Returns the row index of a cell.
A1: =ROWS(C1:E4) => 4
A2: =ROWS({1,2,3;4,5,6}) => 2
A3: =ROWS(C1:E4 D3:G5) => 2