# GS1 AI (37) COUNT of Trade Items Specification
> Extract GS1 AI (37) COUNT quantities paired with AI (02) CONTENT for variable-measure retail barcodes.

- **Canonical URL:** https://stanzaapi.com/tools/gs1-decoder/ai/37-count
- **Governing Standard:** GS1 General Specifications & AI Syntax (GS1 Global Standards Architecture)
- **Latency:** <1ms Edge
- **Privacy:** In-memory execution only (zero data stored or logged)

## Technical Overview & Governing Rules
AI (37) is the COUNT of trade items contained in a variable-measure trade item identified by AI (02) CONTENT.

The value is numeric and zero-padded to a fixed 6 digits, and it always follows AI (02) in the same barcode.

Decoders normalize the padded value to an integer count for inventory and point-of-sale systems.

## Specification Matrix
| Property | Value |
| --- | --- |
| AI Code | 37 |
| Data Content | COUNT of trade items |
| Length | 6 digits (zero-padded) |
| Paired AI | AI (02) CONTENT |
| Example | 0200012345678905 37000012 |

## Standard JSON Response Model
```json
{
  "ai": "37",
  "count": 12,
  "raw": "000012",
  "pairedWith": "02"
}
```

## Frequently Asked Questions & Edge Cases
### Q: What does AI (37) represent?
**A:** AI (37) is the count of trade items inside a variable-measure trade item. It always accompanies AI (02) CONTENT so a point-of-sale system can price the exact quantity.

### Q: Is AI (37) fixed or variable length?
**A:** AI (37) is fixed length: 6 numeric digits, zero-padded. Because it is fixed length, no FNC1 separator is required after it.
