Code to test and demonstrate an exam question. BitCounterTest will test the counter for an entire cycle and output in order the current state of the counter and the number of list operations required to bring the counter from the previous state to the current state.