Change counting of vertices