Don’t need to buy too many newborn diaper! Babies usually moved up to size S within one month from birth.
I only bought 3-4 packets of newborn (depending what brand you buy and how many pieces per pack). My baby used about 7-8 diapers per day, changed every ~3 hours.
My baby is currently 13 month old, wearing size M.