Guess how many?

A child goes to a shop to buy chocolates. He hands over 10 rupees to the shopkeeper and gets 10 chocolates. Seeing the happy face of the child, the shopkeeper thinks something interesting. He tells the child that he will give a rupee for every two chocolate wrappers that the child collects and gives back.

Guess how many chocolates did the child get to eat?