Two different degrees of freedom are used in the F-distribution. First is the df for the numerator, which is k-1, where k is the number of groups in the sample. Second is the df for the denominator, which is N-k, where N is the total sample size - the sum of the size of all the groups.