For every RSA-cryptosystem, there exist some messages $m$, for which it holds that $m^e \equiv m \pmod n$
As to the question, how many such messages exist, this question has already been asked and answered here: https://math.stackexchange.com/questions/1298664/rsa-fixed-point
However, I do only understand the answer up to a certain point
Suppose that $n$ is only 1 prime. Then it holds that the number of unconcealable messages is $\gcd(e-1, p-1)+1$
This is because in $m^e \equiv m \pmod p$ , either $m = 0$ or $m \not= 0$. In the latter case $m$ can be expressed as $g^t$, where $g$ is a Generator in $\mathbb{Z_p}$
$g^{t*e} \equiv g^t \pmod p$
$g^{t(e-1) \bmod p -1 } \equiv g^{0 \bmod p -1} \pmod p$
$t(e-1) \equiv 0 \pmod {p-1} $ has exactly $\gcd(e-1, p-1)$ solutions, so the total number of unconcealable messages is, together with $m=0$ , $\gcd(e-1, p-1)+1$
When we now look at real RSA, which has two prime factors in its modulus, it holds that the number of unconcealable messages is $(\gcd(e-1, p-1)+1)\cdot(\gcd(e-1, q-1)+1)$
Why is that so? I suppose it has to do with CRT, but I just cant understand why.