This is just a me thing, but part of the problem with asking "How many is too many?" is it gives room to say "Oh well, less than X is acceptable." when it's not. A better way to understand the idea of dying is asking "Why did that happen?" Imo, that's a lot more important than asking "Is it OK?" primarily because everyone knows dying is bad; you don't need Nightblue or Bjergsen to tell you that to know it's bad.
With that in mind, you need to figure out what causes deaths at all points of the game.
Did you die in a gank? If so, did you have river/tribush/sidebush warded, or did you consider that the jungler should've started Gromp so he'd be around Red buff/Krugs at about 2:30 - 3:00?
Did you die due to a roam or a TP? If so, did you consider when the TP timer was or pay attention when the top/mid laner called X's TP? Did you notice the TP marker on the minimap during the channel?
Did you die while trying to ward the enemy jungle? If so, did you notice the number of MIA's on the map or the notice that dragon is alive, so the jungler would most likely be nearby? Did you bring someone with you (typically your jungler) to support you and ward as well in case shit hit the fan?
Did you die in a solo kill to your lane opponent? If so, did you anticipate their damage/your durability? Did you take into account their ignite/flash vs. your TP/flash? Did you manage your cooldowns so you could fight back when the enemy laner all-in'd you or play around their cooldowns so you could all-in them?
I hope this helps in the structure of your questioning. It's not as much about asking "How much is too much?" as it is about understand the "Why?" of the situation.
More to your actual question though...
The hard number of how many deaths that happen in a game that is "permissible" is a little odd to define, just because you don't want to give the idea that a few is ok. Personally, I think the answer is "Never, or if you 'have to die', you better get something for it like a tower or dragon."
How people would respond to this:
- But I'm in a countered lane!
Yes, that sucks, but ask any pro player if that's ok, and they will tell you "No, it's not." Even if your playing Singed into Teemo, you shouldn't die to him. Give up CS, give up lane pressure, try to freeze or farm under tower, but don't die to him. Being countered is no reason to think you have an excuse to die.
- But X is so broken or already strong now!
95% of the time, no they're not. People typically blame their deaths on X being broken, when it's really just them not understanding the match up/the champion/their champion enough to know how to play the lane. Sometimes yes, champions can be too strong, but not to the point where rolling over and dying is fine. Regardless of how powerful X is, you have no reason to just die to them in the lane when you can just freeze lane and farm under tower or wait for jungler support or roams.
- I misjudged/misplayed that fight!
The excuse I'm most okay with, because it happens to everyone. Sometimes you think you can do it when you just end up being wrong. At some point in a lane, the two are going to go all-in on each other, and one of the two will be wrong and die. That's just the nature of the game. If you just type "MB" I'm usually willing to accept the conclusion that shit happens. But if that happens again, that's not okay. If you misjudged it once, don't try it again until you are certain you've got it. I'm talking like a no flash, no mana, 15 health Kassadin while you have ignite. I don't tend to excuse my own deaths in such a manner; I don't give myself that benefit of "Oh I misplayed." because I know I'm better than that.
- He's/She's just a better player!
Unless you're playing vs. a Diamond smurf or you're playing with your friends who are much higher elo than you, this is irrelevant. In those scenarios, treat it like a countered lane and just play safe.
- There was nothing I could've done!
This does happen sometimes. In these scenarios, there maybe have been something you could've done, but most of that pertains to preventing the situation in the first place. What could you have done to prevent yourself from being in that situation in the first place?
- I had to! If I didn't, X would've happened/We got X for that!
So this pertains to when you run interference for a dragon/Baron/tower kill or for a low health ally. I'm not going to say it's okay to die in these situations, but you can sometimes place yourself in more danger than is actually necessary. You don't need to be in range of Blitz grab to zone people off of Baron. If you and an ally are running away and they are bound to catch you at some point, it's often not a bad idea for someone to go back and be a sacrifice so the other can escape. That's not to say you should've allowed that situation to happen, but you need to minimize casualties as much as possible.
- But I needed to X!
Be it ward the enemy jungle, take tower/X buff or get a solo kill, if you put yourself in danger, you need to be willing to take responsibility for it and not make an excuse. There are such things as necessary risks and unnecessary risks. Unnecessary risks are things like going into the enemy jungle when all 5 are Mia and alive to ward. Necessary risks are things like trading with your enemy laner as your jungler is coming in for a gank, i.e. initiating the gank. The point here is to minimize the unnecessary risks as much as possible.
- But I'm X! It's my job to die!
No, it's not. This is my absolute most despised excuse ever. It is not your job as the tank/support/whatever to die and give gold to the enemy team. Your job as the tank is to soak as much damage and CC as possible and peel for your carries/get to their carries. This DOES NOT mean it's perfectly acceptable if you die in the process. I'm still sad when my Trundle dies as he peels that Xin Zhao off my ass, and I think it didn't need to happen. Because it didn't. One of us, me or the Trundle, could've played it better so that didn't happen. If push comes to shove and you are going to die, you need to at least make sure you make it worth it by making sure your Cait gets away or your team wins the big fight at Baron because you zoned the shit out of that Jinx while your team slaughtered everyone else.
Bottom line:
It's best to understand why deaths happen rather than try to excuse them and figure out how many are OK and where to draw the line.
The best way to ensure deaths are at least permissible is to ensure something is gained for it that is actually worth your life and that 30 seconds where you're staring at a gray screen.
The best way to remove deaths is to actually learn the intricate parts of the game, the champions, the lanes, and the objectives so you know what to do is X scenario. Knowledge is your best weapon.