The $SO(3)$ rotation group is defined by:
$A\cdot A^T=\mathbb{1}$ and $\det{A}=1$. The group is supposed to have 3 free parameters, as suggested by Euler's angles. However, I am doing something wrong with counting of the parameters because I cannot arrive at that number.
$3\times3$ matrix has $9$ free parameters. The requirement $A\cdot A^T=\mathbb{1}$ produces 6 equations for those parameters: $$ \vec{a_1}\cdot\vec{a_1}=1\\ \vec{a_1}\cdot\vec{a_2}=0\\ \vec{a_1}\cdot\vec{a_3}=0\\ \vec{a_2}\cdot\vec{a_2}=1\\ \vec{a_2}\cdot\vec{a_3}=0\\ \vec{a_3}\cdot\vec{a_3}=1\\ $$
($\vec{a_i}$ being the columns of $A$) and reduces the number of free parameters to 3. But with this requirement $\det{A}=\pm 1$ and so $\det{A}=1$ presents another restricting euqation, and so i get 2 free parameters.
If I do a similar counting for the $SU(2)$ group, i have 8 free parameters of $2\times2$ complex matrix, the requirement $A\cdot A^\dagger=\mathbb{1}$ provides 4 independent equations and the determinant provides 2 more conditions (complex and imaginary parts) which again reduces to only 2 free parameters.
Where am i doing the mistake in counting the parameters and equations?
The problem is that the restriction $\det A=1$ does not lead to a reduction on the number of parameters. Consider, for instance, $\Bbb R\setminus\{0\}$. It is $1$-dimensional. And if consider the subset $\{x\in\Bbb R\setminus\{0\}\mid\operatorname{sgn}(x)=1\}$, then you still have a $1$-dimensional thing.
It is similar here: $O(3,\Bbb R)$ is $3$-dimensional and $SO(3,\Bbb R)$, which is one-half of it, is still $3$-dimensional.