instruction: what is the number of patients whose discharge location is disch-tran to psych hosp and admission year is less than 2187?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.admityear < "2187"