find the length of the pipe