The only with hard count for a team yellow is the types of penalty given away, does a straight yellow/red count towards it. I think the below a fair assessment (don't read the comments) although as noted an attacking pen tends to have less 'weight' than an attacking one. You also have question if its fair to add scrum penalties to the list as well.
Social media has heaped plenty of mostly undeserved criticism on referee Andy Brace following England’s narrow win over South Africa.
www.rugbypass.com
Still I think Brace should of branded a yellow card earlier and I think it might more influenced by its being a different half (there does seam to be a reset that occurs that shouldn't, as well as length of time between warning and the next penalty) and the nature of those first half penalties. Whether it would changed I don't know the yellow card period actually was the point where England started to get a better grip on the game that they were badly loosing.
Not that it should of made a difference Kolisi should or probably had a word with the Brace earlier and he certainly shouldn't of had it when a potential yellow card was not given, it wasn't clear at first that was what he was arguing for and looked like it was dissent for the TMO decision. So a bad bit of ref management (thank god we didn;t have Farrell he'd probably got it upgraded to a red).