Pipeline product counting and packaging microcomputer automatic control system