COUNT v16
COUNT
is a method that returns the number of elements in a collection.
Syntax
The syntax for using COUNT
is:
Where collection
is the name of a collection.
For a varray, COUNT
always equals LAST
.
Example
This example shows that an associative array can be sparsely populated, with gaps in the sequence of assigned elements. COUNT
includes only the elements that were assigned a value.
The following output shows that there are five populated elements included in COUNT
: