> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# bitmap_count

> Returns the 1-bit count for the input bitmap.

Returns the 1-bit count for the input bitmap.

## Syntax

```Haskell theme={null}
INT BITMAP_COUNT(any_bitmap)
```

## Examples

```Plain Text theme={null}
MySQL > select bitmap_count(bitmap_from_string("1,2,4"));
+-------------------------------------------+
| bitmap_count(bitmap_from_string('1,2,4')) |
+-------------------------------------------+
|                                         3 |
+-------------------------------------------+

MySQL > select bitmap_count(NULL);
+--------------------+
| bitmap_count(NULL) |
+--------------------+
|                  0 |
+--------------------+
```

## keyword

BITMAP,BITMAP\_COUNT


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.