There are websites and programs like beersmith that estimate how many yeast cells you need for a healthy fermentation of a given gravity wort. The last 3g lager I made needed 250 billion cells, the next 1 gallon ale needs 60 billion. A standard 1.050 5 gallon ale brew needs about 200 billion.
Next you estimate how many cells you have. If you are pitching dry yeast that is normally 200b per pack. Liquid is 100b per pack when fresh but it degrades quickly. After 3 months it might be closer to 60b cells. There are calculators that estimate this for you.
If you don't have enough yeast to meet the target for the recipe then you have 3 options.
- buy more packs of yeast
- take a chance with what you have (underpitching causes a range of problems)
- make a starter
With yeast everything is an estimate, but if the recipe estimates 250b cells and you have much less than that then a starter is a good idea. Some people underpitch with no adverse effects, others underpitch and start threads like "my IPA finished at 1.021" or "48 hours and no airlock bubbles" or "help me diagnose this off flavour".