Earlier quoted context omitted.
You're weighing the bag. Dispense a load in and divide the total weight by the unit weight and you know how many you've put in. Easier with heavy objects, and needs the variation on weight to be low for the number of items you're dispensing.
Sure, but how do the parts get into the bag?
it's very easy to count <=5 visually, but if your package requires 12 nuts, repeatedly counting up to 12 is so stressful the poster built an entire counting machine.