As Anton mentioned, there is no built-in method or property for the count of items in an array.
However, you could write a quick macro method to accomplish this:
[assembly: RegisterExtension(typeof(ArrayMacroMethods), typeof(Array))]
public class ArrayMacroMethods : MacroMethodContainer
{
[MacroMethod(typeof(int), "Returns the number of items in an array.", 1)]
[MacroMethodParam(0, "countedarray", typeof(Array), "Array to count items in.")]
public static object Count(EvaluationContext context, params object[] parameters)
{
if (parameters.Length != 1)
throw new NotSupportedException();
var array = parameters[0] as Array;
if (array == null)
throw new NotSupportedException();
return array.Length;
}
}
Then it's just a matter of using it as an extension method:
{%
StringIs = "Functional Metal Fabrication|Design & Graphic Technology|Printed Technology Piece|Creative Metal Fabrication";
return StringIs.Split("|").Count();
|(identity)GlobalAdministrator%}