until 3 years ago, count the number of hospital visits of patient 91004.
select count( distinct admissions.hadm_id ) from admissions where admissions.subject_id = 91004 and datetime(admissions.admittime) <= datetime(current_time,'-3 year')