Gear measurement