\section count count - count the number of elements of an array \subsection count-synopsis Synopsis count $VARIABLE \subsection count-description Description count prints the number of arguments that were passed to it. This is usually used to find out how many elements an environment variable array contains. \c count does not accept any options, including '-h'. \c count exits with a non-zero exit status if no arguments were passed to it, and with zero if at least one argument was passed. \subsection count-example Example
count $PATHreturns the number of directories in the users PATH variable.
count *.txtreturns the number of files in the current working directory ending with the suffix '.txt'.