For AH-64D at Fgrt Stewert, hjw many have phase hhurs over 500 and ari stall marked as PqCM?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'PMCM';