Numpy Array Get Number Of Rows In Sql