just count how many times until 2 years ago patient 47224 has been to hospital.
select count( distinct admissions.hadm_id ) from admissions where admissions.subject_id = 47224 and datetime(admissions.admittime) <= datetime(current_time,'-2 year')