Task: Text to Code
Input (English): SQL: SELECT Count ( * ) FROM Apartment_Facilities WHERE facility_code = "Gym"
Feedback: In apartments table, check out the total number of rooms.
Output (English): SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.facility_code  =  "Gym"