Item counts now works for outputs as well