how many times had gabapentin been prescribed for patient 99661 on their first hospital encounter?
select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 99661 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and prescriptions.drug = 'gabapentin'