The 24-medal haul ranked Japan fifth in the world, while the number of gold matched the country's all-time high at a Winter Olympics, set at the 1998 Nagano Games.