Write SQL query to solve given problem: In female customers ages from 50 to 60, how many of them has an number of inhabitants ranges from 19 to 24?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(T1.ID) FROM Customers AS T1 INNER JOIN Demog AS T2 ON T1.GEOID = T2.GEOID WHERE T1.SEX = 'Female' AND T1.age >= 50 AND T1.age <= 60 AND T2.INHABITANTS_K >= 19 AND T2.INHABITANTS_K <= 24