When I read about free group, the proof which concerns about two free groups $F(X)$ and $F(Y)$ are isomorphic only if $\operatorname{card}(X) = \operatorname{card}(Y)$ has a sentence going as follows:
$|M(X \cup X^{-1})|=|X \cup X^{-1}|=|X|$, using the axiom of choice.
Can someone give me more hint about this question or some references?
If $u_1 \ldots u_n$ is the writting of a element of $F(X)$, how many elements have a writting of the form $u_1 \ldots u_n v$ ?
Starting from here, you have a recursion relation $|W_{i+1}| = f( |W_i| )$ where $W_i$ is the elements of $F(X)$ with writting of length $i$. Then, you can deduce $|F(X)| = |\bigcup_{i \in \mathbb N} W_i|$ with respect to $|X|$.
(As someone noted in the comments, your proof is only relevant when $|X| > \aleph_0$.)