Regulation S-X Rule 5-02.29 requires companies to state, for each class of common stock, the number of shares issued or outstanding on the face of the balance sheet, along with the number authorized. In XBRL the balance sheet figure is tagged CommonStockSharesOutstanding, and the issued count, which still includes treasury shares, is CommonStockSharesIssued. Separately, the cover page of each 10-K and 10-Q reports shares outstanding for each class as of a recent date shortly before filing, tagged EntityCommonStockSharesOutstanding. That cover-page count is usually more current than the balance-sheet figure.
Companies with more than one class of common stock, such as those with separate voting and non-voting shares, report each class separately, and the classes must be added together for a total. Authorized shares are the ceiling set in the corporate charter and have no bearing on the count. Outstanding shares also exclude unexercised stock options, unvested restricted stock units, warrants, and convertible securities. Those potential shares matter for diluted EPS and diluted market capitalization, but they are not yet outstanding.
Shares outstanding converts company-level figures into per-share figures and, multiplied by the share price, produces market capitalization. Tracking the count over several years shows whether buybacks are shrinking it or stock compensation and share issuance are growing it, which directly affects each shareholder's ownership stake. Remember to adjust earlier counts for stock splits before comparing.