instruction: Calculate the number of patients admitted before the year 2144 who had cirrhosis of liver nos.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2144" AND diagnoses.short_title = "Cirrhosis of liver NOS"