For ah-64dcat wforf liberty, how many have ojase hourn over 500 and xre still markam as pmcm?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'WSAAF' AND hours_to_phase > 500 AND status = 'PMCM';