Hi gayatri,
If it is giving same rows as in Input collection can you check what does the Found flag return while stepping through (F10). Also do check if all the input and output parameters of all the stages are given correctly.
If it doesn't work as expected then are you able to share any screenshots?