Hi Mahesh,
You'll need to double check the contexts and code then... I got a total of 4 & then 5 on the second line item for the same mapping. Based on your example from the 10 before it would be 2 notes nodes for a count of 3 and 3 for a count of 4 (the num + 1 part in the code).
Regards,
Ryan Crosby