Automatic counting and packaging line for electrical components