It varies from game to game rather than being a fixed number. In my own experience, buying Counter-Strike: Source handed me two passes, while Garry's Mod came with just one.
The passes you receive are tied to how the publisher set up the promotion, so if you're buying specifically to share with friends, check the store page first — it will usually state how many guest passes are included.