Task: Text to Code
Input (English): SQL: SELECT Count ( * ) FROM Pets WHERE PetType = "F" AND pet_age = 3
Feedback: i want the number of rows of has pet table whose pet type is dog and sex is female.
Output (English): SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T2.petid  =  T3.petid WHERE T1.sex  =  'F' AND T3.pettype  =  'dog'