A common technique for counting objects is to passthem through a light beam. Problems can arise, however,if a part dithers on the edge of the light beam and iscounted more than once, or if the direction of motionchanges and a part is recounted rather than uncounted.