Convert Polygon's vertexCount property to method.