how are river lengths measured