count

count(x)

Count the number of elements of a matrix, array or string.

Try it yourself:

See also:
All functions