So far, I have found data on Listed domestic companies (total) on the website of the World Bank. This data comes from the World Federation of Exchanges database.
Statista publishes data on the estimated number of companies worldwide from 2000 to 2021. However, you need Premium Access for this.
The UN Industrial Development Organisation (UNIDO) publishes the INDSTAT database, which provides manufacturing statistics by country, including the number of establishments in particular industries.
However, the OECD publishes the total number of enterprises by sector only for its members.
For EU countries, EUROSTAT publishes data on business demography by size class and NACE Rev. 2 activity.
I need data for all WTO member countries.