Returns the number of elements in the list variable.
$[ScriptVariable]::size()
None
The following example illustrates the syntax for the size list method (using the $recipients list variable created in the add example):
$total = $recipients::size()
print($total)
3