In debug mode, instantiate the model and record its previous count

This is a little sleazy, but I only want to pay the cost of instantiating the model if I'm already in debug mode.