> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Count

## Definition

Indicates the number total number of values in the **ISeries** array. This value should always be in sync with the [**CurrentBars**](/developer/desktop-sdk/references/common/adddataseries/currentbars) array for that series.

## Method Return Value

A **int** representing the total size of the series.

## Syntax

`Count`

## Examples

```csharp
protected override void OnBarUpdate()
{
    Print("Input count: " + Input.Count);
}
```