Get number of items returned by the previous node