An alternate method, though you may or may not be interested in using it, would be to have the table items set up like: nick.apples, nick.bananas, etc. and only have the number for each. You can even have an "index" item (nick.index) that lists all the types of fruit the person has (using $addtok()). The benefit of that is that you can very easily list the total of any given fruit rather than trying to find the right token each time. Of course, you may not ever need an individual fruit's total.

Btw, using $addtok() the way you have it currently is "dangerous". If you already have something like 3 apples and then you $addtok() 3 apples again, it would not create a new token but would skip adding it because the token is already there. hixxy's script or a similar script that sums before adding solves that issue, but I'm just mentioning it so that you know.