I ran into a wall unexpectedly quickly when looking for the minimum number of parts. You need 8 parts, and there is two general layouts possible. I tried with a track and a piston, but it turns out two pistons allow for faster production in parallel.