Reset countLoaded and add some debugging for GH-2