size

size(): Integer;

The size method of the Collection class returns the number of entries in a collection.

Use the size64 method instead of the size method, if the number of entries in the collection could exceed the maximum integer value of 2,147,483,647.