Added System::getNumDegreesOfFreedom()