For decades, demographers have combed through the population data of U.S. allies and adversaries for insights into long-term shifts in the international balance of power.