# SHZ_COUNT_OF

Source: https://sh4zam.com/api/cdefs/SHZ_COUNT_OF/

```c
#define SHZ_COUNT_OF(array) (sizeof(array) / sizeof((array)[0]))
```

Returns the number of elements within a statically sized array.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `array` |  |  |

## Availability

- **C++ equivalent:** none (usable from C++ as is)
- **Back-ends:** n/a (not a function)
- **Defined in:** [`sh4zam/shz_cdefs.h:133`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_cdefs.h#L133)
- **Module:** [Compiler Definitions](https://sh4zam.com/api/cdefs/), section "Utilities"
