TOKYO - The number of foreign workers in Japan as of the end of last October topped 2 million for the first time, government data showed Friday, as the country grapples with labor shortages amid an aging population.