Hi,
I would take a look at some of our sample projects. A lot of those offer different ways to count/accumulate quantites for a given barcode scan. Also, feel free to join our Open Office Hours every Tues @ 2:00 EST and Thurs 10:00 EST. This is a perfect question for that environment.
Thanks.