How many glasses of beer can you get from a keg of beer?

If you are talking about a full size keg, then it is about 165 12oz beers, or 124 16oz beers.
If you are talking about a half keg, then it is about 82 12oz beers, or 62 16oz beers.

Obviously there are other sizes, but those are the main ones.