Bug fix; count before removing NDEBUG preprocessor define.