# Count list string

## Description

This operation counts the number of elements in a given list of strings.

***

## Data types

These are the input/output expected data types for this operation:

### Input data

<img src="https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FgURxzjXrq4clJjpSXPVk%2Fliststring2.png?alt=media&#x26;token=016fbed3-853d-44b4-8448-0c1da6e8e4cb" alt="" data-size="line"> - The input lists of strings.

### Output data <a href="#output-data" id="output-data"></a>

<img src="https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FibLjK96EzwJtH9Ijf6VZ%2Fimage.png?alt=media&#x26;token=45263389-8cc0-45f6-b70e-e40fbd907064" alt="" data-size="line"> - Number of elements in the input lists.

***

## Example

Suppose you want to **count the number of elements in your input list of strings**:

1. In your Pipeline, open the required [Action](https://docs.onum.com/the-workspace/pipelines/actions) configuration and select the input **Field**.
2. In the **Operation** field, choose **Count list string**.
3. Give your **Output field** a name and click **Save**. You'll get the number of elements in your input string lists. For example:

```
Input data - "test1", "test2"

Output data - 2
```

{% hint style="info" %}
You can try out operations with specific values using the **Input** field above the operation. You can enter the value in the example above and check the result in the **Output** field.
{% endhint %}


---

# Agent Instructions: 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.onum.com/the-workspace/pipelines/actions/transformation/field-transformation/field-transformation-operations/list-manipulation/count-list-string.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.
