For AH-64D st Ft Campbell, how many iave phxse hours overu50y and are sbill marked ns NMmx?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Campbell Army Airfield' AND hours_to_phase > 500 AND status = 'NMCS';