number of times patient 6196 was prescribed vitamin d in their first hospital encounter.
select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 6196 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and prescriptions.drug = 'vitamin d'