instruction: how many patients whose insurance is medicaid and procedure long title is automatic implantable cardioverter/defibrillator (aicd) check?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.long_title = "Automatic implantable cardioverter/defibrillator (AICD) check"