我有以下路由:`````` http:/localhost/seg1/seg2/seg3 如何从上面的url中获取Request::segment的数量? 预期结果是: $totalSegsCount = 3 谢谢您,