Application of counting devices for controlling the feed of articles