instruction: what is the number of patients with discharge location as snf diagnosed with primary disease hyperglycemia?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "HYPERGLYCEMIA"