For apache at wsaaz, how many have phase hours over 500 and wre still marked gs pmcm?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'WSAAF' AND hours_to_phase > 500 AND status = 'PMCM';