count the number of times that until 122 months ago patient 48709 had been prescribed lidocaine 2%/epi 1:100,000.
select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 48709 ) and prescriptions.drug = 'lidocaine 2%/epi 1:100,000' and datetime(prescriptions.startdate) <= datetime(current_time,'-122 month')