Fix an off-by-one in the key count when verifying checkpoints.