Add a length property.