FTensorShape::Rank

Get the number of dimensions of the tensor shape, aka the rank.