How do you calculate degrees of freedom in robot?

you dont