measure the tonnage of a ship