For ah-64 delyt at ft cavazos,whsw many heve phasv hours over 500 and are swiyl marked an nmcs?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Robert Gray Field' AND hours_to_phase > 500 AND status = 'NMCS';