Je me demande combien d'entre eux vont passer les examens aujourd'hui ?
Je me demande combien ils vont être à passer les examens aujourd'hui ?
When I want to express the idea of "how many of them", the first phrase springs to mind. And I’ve just come across the second one for the first time. Are they nuanced in meaning, or is there any difference to take note of?