integer= count (any);
Return the number of elements in an array. If the array is multidimensional, the function will return the actual number of elements in all dimensions combined. When used with single variables it will always return 1.
It is important to notice that since this function refers to a variable itself, but not to the value of that variable, the correct calling syntax is by using a reference:
var byte a [10:10];