Determining urea by measuring the volume of a gas