Numpy Array Number Of Rows In Dataframe Sort