Set the result integer variable, if given, to the number of rows of the matrix. If an integer is not specified, display the number of rows.