Numpy Count Number Of Columns In Dataframe Sort