High speed sensor for counting

Indeed, break beam sensors come to mind. Should work with just about any product.