This command will return the number of items in the array. This is usually the value used to create the array when the DIM command was used, however by modifying the dynamic array this value can change throughout the execution of the program. When an array is completely empty, it will return a count of -1. The count refers to the number of available indexes, and so will return a count of zero when the command DIM arr(0) is used, representing the fact a single subscript is available at index zero.

Syntax: 
Return Integer=ARRAY COUNT(Array Name(0))