結果 : get number of rows in matrix python