Object counter « counting box »

Or, combine the two into a chute with an IR sensor. Mount the IR as low to the sliding surface as practicable. As the package slides it breaks the IR beam.

chute.png

chute.png