During an investigation into the rate of photosynthesis in pondweed, a student counts the number of gas bubbles released per minute. Give a piece of apparatus that could be used to measure the volume of gas produced more accurately than counting bubbles.