Task: Text to Code
Input (English): SQL: SELECT Count ( * ) FROM Allergy_Type
Feedback: Need to count number of students , also make sure allergy name equals food .
Output (English): SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy  =  T2.allergy WHERE T2.allergytype  =  "food"