in total, count the number of patients who have been prescribed dicloxacillin until 3 years ago.
select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'dicloxacillin' and datetime(prescriptions.startdate) <= datetime(current_time,'-3 year') )