Wrote df calculation for Model class.

Wrote degrees of freedom calculation for Model class.