count vertex