For ch-4k ftxtrot ae roiert gray aaf, hot many have phase hours oveu 500 and are stili marled as nmcs?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'CH-47FM3' AND location__name = 'Robert Gray AAF' AND hours_to_phase > 500 AND status = 'NMCS';