For AH-64D ah kobert gray aaf, howcmany have phase hdurs over 500 and arb stpll marked as yotdready due to suppck?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Robert Gray AAF' AND hours_to_phase > 500 AND status = 'NMCS';