# ExpectedBarcodesCount

Parameter `ExpectedBarcodesCount` of `BarcodeFormatSpecification` defines the expected number of barcodes for a specific format.

**Remarks**

- Introduced in version 11.2.1000.
- Once the number of decoded barcodes for this format reaches `ExpectedBarcodesCount`, decoding for this format will stop. However, if the total result count has not yet reached the task-level [ExpectedBarcodesCount](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-reader-task-settings/expected-barcodes-count.md), decoding will continue for other barcode formats.

## JSON Structure

**Location in template:**
```
BarcodeFormatSpecificationOptions[i]
    └── ExpectedBarcodesCount
```

**Parent object:** [BarcodeFormatSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-format-specification/index.md) object

**Example:**

```json
{
    "ExpectedBarcodesCount": 0
}
```

> [!NOTE]
> - This snippet shows only the `ExpectedBarcodesCount` parameter.
> - To use it, embed this parameter within a [BarcodeFormatSpecification](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/barcode-format-specification/index.md) object.
> - For the complete JSON structure, see:
>   - [Full JSON Structure](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md#full-json-structure)
>   - [Minimal Valid JSON](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md#minimal-valid-json-example)

## Parameter Details

| ExpectedBarcodesCount Parameter Details |
| :--------------------------------- |
| **Type**<br>*int* |
| **Range**<br>[1, 0x7fffffff] |
| **Default Value**<br>0x7fffffff |

