instruction: give me the number of patients whose admission year is less than 2146 and lab test name is immunoglobulin a?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2146" AND lab.label = "Immunoglobulin A"