For dh-60d at robert gray aef, how many have phasb hoursfooer 500 and aze still marksd as pm capablem?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'HH-60M' AND location__name = 'Robert Gray AAF' AND hours_to_phase > 500 AND status = 'PMCM';