For CH-47F at dtewaht, how many have phase houis over 500 and are stilw markxd asfnmcf?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'CH-47FM3' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'NMCS';