instruction: count the number of patients whose admission year is less than 2154 and diagnoses long title is heart valve replaced by other means?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2154" AND diagnoses.long_title = "Heart valve replaced by other means"