> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/version-1.66/nedyx/clearlines-functions/range-functions/count.md).

# COUNT

#### Syntax <a href="#syntax.13" id="syntax.13"></a>

**COUNT**(*range*; *orientation; option*)

* *range* - a range of values - ***Value type**: range*
* *orientation* - the orientation of the count calculation - ***Value type**: constant (optional, <mark style="color:red;">all</mark> as default).* Possible values are:
  * *<mark style="color:red;">all</mark>* - the whole range is counted and returned as a single number
  * *<mark style="color:red;">horizontal</mark>* - the count calculation is performed horizontally (row-wise) and returned as a column of numbers
  * *<mark style="color:red;">vertical</mark>* - the count calculation is performed vertically (column-wise) and returned as a row of numbers
* *option* - defines if empty cells are counted as well - ***Value type**: constant (optional, <mark style="color:red;">nonemptycells</mark> as default)*\
  Possible values are:
  * *<mark style="color:red;">numericcells</mark>*
  * *<mark style="color:red;">nonemptycells</mark>*
  * *<mark style="color:red;">allcells</mark>*

#### Remarks <a href="#remarks.10" id="remarks.10"></a>

* If parameter 3 is defined, parameter 2 must be defined as well.

#### Examples

<figure><img src="/files/jBiiE40wi0WHRDOrQc66" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/fHGhCq41MhRePTSfgzLJ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/rNxvXkJdqafp7E3AcQ77" alt=""><figcaption></figcaption></figure>
