---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---

# console.count()

The **`console.count()`** method logs the number of times that
this particular call to `count()` has been called.


## Syntax

```js
count()
count(label)
```

### Parameters

- `label` _optional_
  - : A string. If supplied, `count()` outputs the number of
    times it has been called with that label. If omitted, `count()` behaves as
    though it was called with the "default" label.

### Return value

`undefined`.
