Text this: Lengths of closed geodesics for certain warped product metrics and nearly round metrics on spheres