How many publicly traded companies are in the US and the world?

Worldwide, according to a source at Bloomberg LP (which provides news on publicly-trade companies to the financial sector), there are about 63000 publicly-traded companies.

There are roughly 15000 publicly traded companies in the US, of which about 1/3 are traded on exchanges and the other 2/3 traded in various over-the-counter markets.