# Count list boolean

## Description

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

***

## 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%2FngJwwpwr1ZyMhWlsriER%2Fimage.png?alt=media&#x26;token=736b083a-9694-42d4-a22a-77e55f35b932" alt="" data-size="line"> - The input lists of booleans.

### 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 booleans**:

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 boolean**.
3. Give your **Output field** a name and click **Save**. You'll get the number of elements in your input boolean lists. For example:

```
Input data - true, false

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 %}
