For more precision here is the code of my SQL statement:
(SELECT COUNT(*) + 1 FROM (SELECT DISTINCT [Classe],[Moyenne] FROM [tblElèves] AS T2 WHERE [Classe] = [