instruction: How many patients admitted before the year 2162 were discharged to SNF?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.admityear < "2162"