instruction: find out the number of patients with admission location as transfer from hosp/extram who were admitted before the year 2165.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.admityear < "2165"