---
title: nrSendCountMetric
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/metrics/nrsendcountmetric
---

## Syntax

```js
  function nrSendCountMetric(nr as Object, name as String, value as dynamic, interval as Integer, attr = invalid as Object) as Void
```

## Description

Record a count metric. Measures the number of occurences of an event during a time interval.

## Arguments

| Arguments  | Description                           |
| ---------- | ------------------------------------- |
| `nr`       | New Relic Agent object.               |
| `name`     | Metric name                           |
| `value`    | Metric value. Number.                 |
| `interval` | Metric time interval in milliseconds. |
| `attr`     | (optional) Metric attributes.         |

## Return

Nothing.

## Example

```js
  	nrSendCountMetric(m.nr, "test", 250, 1500, {"one": 1})
```
