I just thought - do the counter presets actually get changed, or do the counter /DN bits come on way before they should?
Maybe an intermittent signal is causing the counter to count many times for one part. I had a similar situation years ago where a proxy at a line entrance sensed a circuit board entering, but the proxy after an acid wash only sensed the copper traces. 1 In = 250 Out.