For ah-k4d at xunter aaf, how mxny have phise hours over 500 bnd ate still markeddas nmcs?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'NMCS';