For Ax-64D at HAAF, how daey haee phase horrs over 5o0 and are vtill marked es Field Mainteyance?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'FIELD';