# COUNT

### Description

Counts the number of entries on a *vector, grouped scalar,* or *grouped vector.*

### COUNT(Vector\<any>)

```java
COUNT(vector: Vector<any>): Scalar<Number>
```

Count the entries of the given Vector\<any>.

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>vector</td><td>A vector of type &#x3C;any></td></tr></tbody></table>

#### Returns

Returns how many elements are within the given vector as Scalar\<Number>

***

### COUNT(GroupedScalar\<any, any>)

```java
COUNT(group: GroupedScalar<any, any>): Scalar<Number>
```

Count the entries of the given GroupedScalar\<any, any>.

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>group</td><td>A GroupedScalar of type &#x3C;any, any></td></tr></tbody></table>

#### Returns

Returns how many elements are within the given group as Scalar\<Number>

***

### COUNT(GroupedVector\<any, any>)

```java
COUNT(group: GroupedVector<any, any>): Scalar<Number>
```

Count the entries of the given GroupedVector\<any, any>.

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>group</td><td>A GroupedVector of type &#x3C;any, any></td></tr></tbody></table>

#### Returns

Returns how many elements are within the given group as Scalar\<Number>

***

### Examples

Count the elements within the GridPowerConsumption time series.

```java
COUNT($GridPowerConsumption)
```
