Torchvision.ops.nms(boxes: torch.Tensor, scores: torch.Tensor, iou_threshold: float)

I wonder this function only return the selected indices,how can we get the exactly selected num?