MeasureVarInt

Measure the length in bytes (1-9) of an encoded variable-length integer.