count

count(array array) → integer numberOfElements
Counts the elements contained within an array. For a map, use mapSize.

Calculates the number of elements contained in the array array.

Parameters
Return
Examples
var array = [10, 15.5, 16, 18, 13]
debug("count = " + count(array)) // Displays 5
const array = [10, 15.5, 16, 18, 13]
Debug.log("count = " + array.length) // Displays 5
array = [10, 15.5, 16, 18, 13]
Debug.log(f"count = {len(array)}")  # Displays 5