the deaths arent endings
You get a unique cut scene and the game literally ends (you have to get through the opening scene again.) So I'd count it. If it restarted you from a checkpoint or something I wouldn't.
ok but the game doesnt count them