To get the integers in the first column use a query like this:
select ROW_NUMBER() OVER (ORDER BY NumOfStudents) AS Score, NumOfStudents from TableName
Or, alternatively, to make things easier in the future, simply add a column to the table for score. It would make things easier as for each assignment a query like this would work perfectly:
SELECT COUNT(*) AS NumberOfStudents, Score FROM TableName WHERE Assignment = "AssignmentName" GROUP BY Score