For PWT, its really up to the person to decide on that. A majority of people just count deaths that centralize around the main game (pre Hall of Fame).
As for the auto healing part, some people count that Pokemon as back alive; however, most people strongly recommended that you count that Pokemon as dead, and swap it out immediately. At your first convenience, deposit it in the PC.