Laptop & desktop unit sales of both PC & Mac have largely stagnated since iPhone & Android came out in '07/'08.Even a "small piece of the pie" for Apple is big bucks!
On May 1, 2005, IBM sold their PC business to Lenovo.
Since Apple stopped disclosing units sold they're growing the business by better profit margins. You only have to see the RAM & SSD prices.