SELECT count(*) FROM Student WHERE sex  =  "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food")
Find the number of male (sex is 'M') students who have some food type allery.
[Schema (values) (types)]: | allergy_1 |  Allergy_Type : allergy (text) , allergytype (text) | Has_Allergy : stuid (text) , allergy (text) | Student : stuid (text) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (text) , city_code (text);