Degrees of freedom

How many degrees of freedom does the Pearson chi-squared test of independence use for a 3×43\times4 contingency table with no structural zeros?

(3−1)(4−1)=6(3-1)(4-1)=6. The arithmetic is 12−1−(2+3)=612-1-(2+3)=6.