Squares of side length 1 are arranged to form the figure shown. What is the perimeter of the figure? [asy]

size(6cm);

path sqtop = (0, 0)--(0, 1)--(1, 1)--(1, 0);

path sqright = (0, 1)--(1, 1)--(1, 0)--(0, 0);

path horiz = (0, 0)--(1, 0); path vert = (0, 0)--(0, 1);

picture pic;

draw(pic, shift(-4, -2) * unitsquare);

draw(pic, shift(-4, -1) * sqtop);

draw(pic, shift(-3, -1) * sqright);

draw(pic, shift(-2, -1) * sqright);

draw(pic, shift(-2, 0) * sqtop);

draw(pic, (-1, 1)--(0, 1)); draw(pic, (-1, 0)--(0, 0));

add(reflect((0, 0), (0, 1)) * pic); add(pic);

draw((0, 0)--(0, 1));

[/asy]
There are 16 horizontal segments on the perimeter.  Each has length 1, so the horizontal segments contribute 16 to the perimeter.

There are 10 vertical segments on the perimeter.  Each has length 1, so the vertical segments contribute 10 to the perimeter.

Therefore, the perimeter is $10+16=\boxed{26}$.

(We could arrive at this total instead by starting at a fixed point and travelling around the outside of the figure counting the number of segments.)