A chi-squared test of independence is to be performed on a 3 × 4 contingency table. How many degrees of freedom does this test have?