Shanghai's expatriate population is swelling as thousands of foreigners flock to the city seeking work. Nearly 9,000 foreign nationals came to Shanghai to work last year, bringing the total number of expatriate workers to almost 20,000, according to estimates by the city's Labour and Social Security Bureau. State media put the number of foreigners living in Shanghai at about 40,000, but this figure does not include people who do not register or who have tourist visas. About 19,500 people from 126 countries were now working in Shanghai, the Wen Hui Daily quoted the bureau as saying. Citizens of Japan, the United States and South Korea accounted for more than half of the total. Last year, more than 150 Indian nationals came to Shanghai to work, up 86 per cent from 2001. China's entry to the World Trade Organisation and its strong economic growth has attracted more foreign companies to the city. It now has more than 30,000 foreign companies and nearly 10,000 representative offices and other foreign institutions. Of the total number of foreigners in the city, 72 per cent are working for foreign companies. The report said many of the foreign nationals had taken upper-management positions in companies. Industry officials said a growing number of foreign nationals were drifting to Shanghai in search of work, rather than being posted by companies.