COUNT v15
COUNT
is a method that returns the number of elements in a collection. The syntax for using COUNT
is:
Where collection
is the name of a collection.
For a varray, COUNT
always equals LAST
.
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
: