Write SQL query to solve given problem: Among all the female current legislators, how many of them have served for more than 4 terms?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(CID) FROM ( SELECT T1.bioguide_id AS CID FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T1.gender_bio = 'F' GROUP BY T2.bioguide HAVING COUNT(T2.bioguide) > 4 )