Numpy Array Get Number Of Rows Of Matrices Mathematica