Rectangle ABCD is graphed in the coordinate plane. The following are the vertices of the rectangle: A(-2,1), B(3,1), C(3,4), and D(-2,4).

What is the perimeter of rectangle ABCD?