Using the logic switch in the middle of the schematic, you can switch between counting up (1) and counting down (0). This is a decimal counter and will count in the range of 0-9.
It would have looked a lot neater had there been 3-pinned logic gates :3