Statement. Let $F_X, F_Y$ free groups over $X,Y$ respectively. Suppose there is an isomorphism $\phi: F_X \cong F_Y$. Then $|X|= |Y|$.
My proof. Let $x \in F_X$ be a word of length one, this is, $x = t_1$. Let $\phi(x) = r_1\cdots r_m \in F_Y$. Then $t_1 = \phi^{-1}(r_1)\cdots \phi^{-1}(r_m)$. If $m>1$, there exists $i$ such that $\phi^{-1}(r_i)\phi^{-1}(r_{i+1})=e$, but then $r_ir_{i+1}=e$, in contradiction with $\phi(x)$ being reduced. So $m = 1$. From here is easy to see that $|X \cup X^{-1}| = |Y \cup Y^{-1}|$ and then $|X| = |Y|$.
However, it seems like the proof for the statement is more complicated than this, as in free groups: $F_X\cong F_Y\Rightarrow|X|=|Y|$. So I suppose that my proof is wrong, but I don't know where.