One unit of alcohol is defined as 10 ml of pure alcohol.
That's about 8 gm (I think).
In the UK the strength of an alcoholic drink is given as Alcohol by Volume, as a percentage.
Beer is typically about 5%.
To work out the unit you multiply the serving size in liters by the ABV number.
A 330 ml bottle of beer at 5% = 0.33 * 5 = 1.65 units. (The bottle would probably say 1.7 units.)
The US uses a different amount of alcohol for their standard drink. I think they use 12 gm of pure alcohol.
(EDIT: I didn't downvote you. I upvoted you. I don't understand the downvotes.)
4 beers in this scenario equals half a fifth of normal 80 proof whiskey like Jack Daniels.
A "couple of beers and a shot" becomes equal to an entire bottle of wine.
Two beers with a long pour (friendly bartender) of tequila or Jameson on the rocks is again, nearly half a bottle of whiskey.
Etc. IPAs are deceptive when you're just trying to "have a couple of beers at the pub down the street after work."
Edit: not really understanding the downvotes? Alcohol content is extremely important in understanding the meaning of a "drink". Not trying to be pedantic, but now more than ever, "a beer" is not really a useful descriptor.
I bring this up because I personally enjoy a beer at the end of a long day. I tend to drink IPAs, and those IPAs tend to range from 6-8% ABV. Trying to put this article in the context of my personal habits.