count the number of times that patient 2874 had had a drain out #2 jp lateral out on the first icu 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 = 2874 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'drain out #2 jp lateral' and d_items.linksto = 'outputevents' )