the number of intensive care unit visits that patient 29540 had until 2104.
select count( distinct icustays.icustay_id ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29540 ) and strftime('%y',icustays.intime) <= '2104'