> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-vortex-format.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> `y` と `x` がいずれも `NULL` でない行の数をカウントします。

# regr_count

<h2 id="regr_count">
  regr\_count
</h2>

導入バージョン: v26.9.0

`y` と `x` のどちらも `NULL` でない行の数をカウントします。

**構文**

```sql theme={null}
regr_count(y, x)
```

**別名**: `regrCount`

**引数**

* `y` — 従属変数。[`(U)Int*`](/ja/reference/data-types/int-uint) または [`Float*`](/ja/reference/data-types/float)
* `x` — 独立変数。[`(U)Int*`](/ja/reference/data-types/int-uint) または [`Float*`](/ja/reference/data-types/float)

**戻り値**

非 NULL のペアの数を返します。[`UInt64`](/ja/reference/data-types/int-uint)

**例**

**基本的な使い方**

```sql title=Query theme={null}
SELECT regr_count(y, x)
FROM VALUES('x Float64, y Float64', (1, 2), (2, 4), (3, 6), (4, 8))
```

```response title=Response theme={null}
┌─regr_count(y, x)─┐
│                4 │
└──────────────────┘
```
