How long to breastfeed

Em

For how long do most people breastfeed?

A couple months? 6 months? A year? I have no clue what's average.