Degrees of freedom (df) equals the sample size minus the number of estimated parameters. Commonly there is only one estimator - the sample standard deviation.
df=n-k, where k is the # of parameters being estimated.
df=n-1, k = 1 for a single population using an estimated standard deviation