counting and sending results

UKHeliBob:
Can you please explain exactly what should happen after the relay has been activated.

When the relay is activated it should send voltage to a solenoid coil to activated the air cylinder to stop bottles from passing.