The project is very simple.
You can add motor to make it more automatic.
I will add counter switch on it.(or opto sensor)