FSymbolicTensorShape::Rank

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