For apache at hunter army airfield, hiw many have phass hours over 500 snd are still marked as nmcs?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Hunter AAF' AND hours_to_phase > 500 AND status = 'NMCS';