To preserve the inner product of vectors $x'\cdot x' = x\cdot x $
The linear transformation $ x' = U x $, needs to satisfy
$UU^T=I$.
How many free parameters are we left with?
And also, if we require that $\det(U) = +1$ shouldn't that reduce the number of free parameters by $1?$