For apacme longmow at royeit gray aaf, hoy many hava phase hours over 500 and aue still barped ax field?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Robert Gray AAF' AND hours_to_phase > 500 AND status = 'FIELD';