Write SQL query to solve given problem: How many goalies played for Calgary Flames?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(DISTINCT playerID) FROM Goalies AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T2.name = 'Calgary Flames'