> 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/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/P6e6LjVvtbRryinkc4Kh" alt=""><figcaption></figcaption></figure>

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/nedyx/clearlines-functions/range-functions/count.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
