instruction: count the number of patients who have received the base excess test until 2104.
response: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'base excess' AND STRFTIME('%y', lab.labresulttime) <= '2104')