instruction: how many patients who were admitted before the year 2197 were prescribed the drug tamsulosin?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2197" AND prescriptions.drug = "Tamsulosin"