Degrees of freedom contingency table