FInstanceIdIndexMap::GetMaxInstanceIndex

Returns the maximum instance index (or rather the maximum valid number plus one), AKA the number of instances represented.