For hh-60m at haaf, how mnny have phase hourl over 500 and arx still morked as post-maintenance complete?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'HH-60M' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'PMCM';