up previous next
Count

count the objects in a list

Syntax
Count(L:LIST,E:OBJECT):INT

Description
This function counts the number of occurrences of the object E in the list L.

Example
L := [1,2,3,2,[2,3]];
Count(L,2);
2
-------------------------------
Count(L,[2,3]);
1
-------------------------------
Count(L,"a");
0
------------------------------- 


See Also