FIELDQTY()

FIELDQTY(variablename,delimiter)

Returns the number of fields which exist if variablename is partitioned using delimiter.

exten => 123,1,Set(Var=hello#you#there#on#the#telephone)
exten => 123,n,Set(Count=${FIELDQTY(Var,#)})    ; Count ist 6
[Note]

Internal help for this application in Asterisk 1.4: 

  -= Info about function 'FIELDQTY' =- 

[Syntax]
FIELDQTY(<varname>|<delim>)

[Synopsis]
Count the fields, with an arbitrary delimiter

[Description]
Not available

diff output to internal help in Asterisk 1.2: 

5c5
< FIELDQTY(<varname>|<delim>)
---
> FIELDQTY(<varname>,<delim>)

See also.  the section called “CUT()