It's worth noting that a company's basic number of shares outstanding can differ from its fully diluted number of shares. The basic number is synonymous with the number of currently outstanding shares, while the fully diluted number accounts for the share equivalent of all warrants, capital notes, and convertible stock the company may have issued. The fully diluted number of shares indicates how many outstanding shares there could potentially be if all existing equity instruments were converted into common stock.
The image below shows a section of Apple's (AAPL -0.96%) balance sheet from 2016 through 2020. The second line from the bottom indicates the number of shares outstanding at the end of each fiscal year, and the bottom line indicates how many new shares were issued by Apple in that year. Total shares outstanding decreased from more than 21 billion in 2016 to less than 17 billion in 2020. The tech company spent billions buying back its stock during these years.