find the length of the rod.