An easier way would be, after figuring out that one angle is 140 degrees:
The "outer angle", or the angle needed to make it a straight line (180) is 40. All closed polygons have a total "outer angle" of 360. So to find how many angles it has, all you do is 360/40=9. I even drew you a diagram
imgur: the simple image sharer