Problem
Teachers' Notes
Hint
Solution
Simple Counting Machine
Take a look at
Circuit Maker
and experiment with the interactivity provided.
There is more information on Logic Gates
here