NB: If you get the answers of 9 and 18, that's fine. It just depends on the initial value of the counters.
NB: You will need the fulluntypedref package for the discussion question 2.