You should put the robot DO in series with the OSR, followed by AUTO mode for sure, and possibly the NOT suspend condition as well.
As constructed, your counter will increment any time the logic preceding the OSR goes true.
Edit (2): Which of those preceeding addresses do you want to count? Can it false trigger? If yes, then you need to know either the minimum duration of a true pulse or the minimum period of the true to true transition in order to make a debounce timer...
Only put known, solid definitions of "new part" ahead of the OSR.
If it is a Fanuc robot you can use the pulse output instruction to guarantee (in addition to comms error detection) that the output is ON for a duration long enough o trigger one count and not miss any...
I got bit by that once, at first not realizing that the order of operation is critical with this no-branch havin' logic...
Hope this helps,
Paul
Edit, that robot address is a PLC output...my mistake...so, do you want to count a part everytime the PLC tells the robot to unload?