count the number of times during the last hospital encounter that patient 15107 had received inject/infus nesiritide procedures.
select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'inject/infus nesiritide' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15107 and admissions.dischtime is not null order by admissions.admittime desc limit 1 )