COUNT v11
COUNT
is a method that returns the number of elements in a collection. The syntax for using COUNT
is as follows:
collection
is the name of a collection.
For a varray, COUNT
always equals LAST
.
The following example shows that an associative array can be sparsely populated (i.e., there are “gaps” in the sequence of assigned elements). COUNT
includes only the elements that have been assigned a value.
The following output shows that there are five populated elements included in COUNT
.