If it helps, I made this curve using TubeTool. Using this tutorial, especially followed part.
Why isn't the number of pipe segments matching the length of the curve? How do I do this via "fit curve" in the array modifier? Thanks
EDIT: I solved the problem by selecting both the curve and the object, pressing Ctrl + A to scale. So the pipe now matches the curve