It is very well known that the dimension of $SO(n)$ is $n(n-1)/2$, which is obtained by the number of independent constraint equations we have from the fact that the matrix is orthogonal.
However, it is a little puzzling to me why the determinant constraint does not affect the dimension, because the determinant constraint seems to be another independent constraint equation to the matrices.