count the number of times patient 40116 got the chest tubes left pleural 2 on their last hospital visit.
select count(*) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 40116 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'chest tubes left pleural 2' and d_items.linksto = 'outputevents' )