instruction: how many of the patients diagnosed with chr kidney dis stage iv were discharged to snf?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SNF" AND diagnoses.short_title = "Chr kidney dis stage IV"