instruction: How many patients discharge location is disch-tran to psych hosp and primary diagnosis is ruq pain?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.diagnosis = "RUQ PAIN"