count(limit)
count(limit) is the notation for a varint that gives the number of items that follow, together with an upper bound on how many are allowed. A value above limit makes the input Corrupt.
The check is made by the columnar block reader, Reader::count in crates/strata-lsm/src/columnar/reader.rs. It stops a damaged or hostile length from driving a huge allocation or a long decode loop before any item is read.
Each structure that uses a counted list names its own limit. The limits for columnar blocks are on Columnar limits, and all numeric limits are collected on Limits.
Related rule: every decoder uses checked arithmetic, and overflow is Corrupt, never a panic (SPEC V59). See Error classes.