We build the counter. On one side, we install a photo reflector, a ramp, a push button, and a blue LED.
On the other side, there is a red LED and a Yana with a servo motor-driven arm.
We drop cubes onto the photo reflector, which the robot counts. The blue LED flashes after each cube. We signal the end of counting by pressing the push button.
At this point, the red LED flashes a random number of times. When it shows the correct number, Yana raises her hand.