Code Improved: student array, student count, array.each loop