num_joints definition