instruction: How many patients with medicare insurance had a pacemaker inserted?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicare" AND procedures.long_title = "Initial insertion of transvenous lead [electrode] into ventricle"