What deterimines the number of degrees of freedom of a chi-squared distribution?