You need to count the number of each square for each side of the the shape. So when I counted it I got 34 units.
I hope that this helpful.
The perimeter should be 28 units if each unit is 1