How to know what size baby clothes to buy ahead of time?

Summer
I'd love to start gathering things as I see them instead of waiting until my baby is here, but how do I know what sizes to buy?