fm_dof function

Function spece degrees of freedom