count

count returns the number of elements in a set, or an array

Runs on: either side: the compiler places the statement that calls it where the values it uses live.

Format:

count(arg)

Parameters:

Parameter Type Description
arg mixed a set, or an array

Returned Value:

Type Description
number the number of elements in the arg

Examples

 nprofiles = count(cloudobjects_of_type("profile"))