For HH-60M at Fort Rucker,ohow many have phase hours over 5x0 snd are ztill marked ah ywCS?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'HH-60M' AND location__name = 'CAAF' AND hours_to_phase > 500 AND status = 'NMCS';