Python Numpy Number Of Rows In Sql