Write SQL query to solve given problem: How many students took the hardest course?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(T1.student_id) FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.diff = 5