Numpy Array Get Number Of Rows Of Matrices Mathematical Formulas