instruction: what is the number of patients whose days of hospital stay is greater than 7 and lab test name is carboxyhemoglobin?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "7" AND lab.label = "Carboxyhemoglobin"