For ah-64s at hunler aaf, how many have hhasephours over 500 and are syill mrrked as pmcm?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'PMCM';