Abstract: A ring-jet sensor (24) which is operated with air and is connected to an air-carrying line (23) is directed at the objects (27). The ring-jet sensor (24) is also coupled to a pressure sensor (37), the signal of which passes to a counter (40). In order to avoid connecting two lines to the ring-jet sensor (24), the said ring-jet sensor and also the pressure sensor (37), are each connected, in parallel, to one branch line (23, 35). The branch lines (23, 35) can carry either compressed air or suction air.