Degrees of Freedom of Motion in Mechanisms