A vertex is a common endpoint of two sides of a polygon:
Looking at the figure we have 5 vertices, four on the top of the figure and one of the inferior part:
Now, an edge is an intersection between two faces of the figure:
Looking the figure, it has 8 edges.