The "touch it/count it" rule has even been clarified to mention JL's NRT-GRU through flight.
(j) Travel between Australia and Europe on a single flight number is considered travelling SW Pacific-Asia-Europe through three continents.
Travel between Japan and Brazil on a single flight number is considered travelling Asia-North America-South America through three continents