This is a design made to count parts at high speed with a laser: