> For the complete documentation index, see [llms.txt](https://jls-organization-3.gitbook.io/projecthyper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jls-organization-3.gitbook.io/projecthyper/features/quickstart/count.md).

# count

**Usage:**

```php
$db->{table}->count($where);
```

<pre class="language-php"><code class="lang-php"><strong>// Total Records
</strong><strong>$total = $db->news->count();
</strong><strong>// 100
</strong><strong>
</strong><strong>// Working with conditions
</strong><strong>$total = $db->news->count(
</strong><strong>    array('name' => 'My Name')
</strong><strong>);
</strong><strong>// 5
</strong></code></pre>

Looking for the other parameters?

{% content-ref url="/pages/GBigEuwxBTtPN353H08f" %}
[Parameters](/projecthyper/features/quickstart/parameters.md)
{% endcontent-ref %}
