The most populous countries in 2050 may look something like this:
https://www.forbes.com/sites/niallmccarthy/...c/#145384ae39f6However, that does in no way mean that militaries in that time will be vastly bigger as well. The reason why WW1 and WW2 involved such enormously sized armies of millions on both sides back then was because Western societies still tended to have a lot of children and there was a major gap between the destructive power of weapons and their accuracy, which meant that you needed to have large amounts of forces throwing large amounts of firepower on a relatively large area just to hit some actual target. But the technological advances that came after WW2 have closed this gap significantly, with modern weapons being even more destructive but far, far more accurate and reliable than the old weapons. This means that you now need far -less- troops throwing massed firepower at a general area, because you actually aim reliably at the tactical or strategic target you want to destroy. At the same time, birthrates around the world are decreasing, with first world nations being most affected. This means that by 2050, militaries will likely be much smaller than they are even today, because a much smaller portion of the population is of fighting age (a lot more people will be elderly and you still need ordinary working people, not just soldiers) and there will also be less troops required to operate the more advanced equipment that allows for precision warfare.
So, the numbers given for ROTR are either fairly realistic or even too big - but the militaries of that time will likely -not- be bigger than these.
This is of course ignoring the fact that ROTR does not give a realistic portrayal of technology and doctrine in the late 2040s, which will likely be very different in the real world