Lego GBC belt conveyor + Wedo and Scratch

We used Lego WeDo and Scratch to count the balls and run the conveyor only when the balls are on it.