More countries, including China, are grappling with shrinking and aging populations