Mesh.vertexCount
var vertexCount: int;
int vertexCount;
vertexCount as int
Description

Returns the number of vertices in the mesh (Read Only).

	function Start () {
		var mesh : Mesh = GetComponent(MeshFilter).sharedMesh;
		print(mesh.vertexCount);
	}
using UnityEngine;
using System.Collections;

public class Example : MonoBehaviour {
    void Start() {
        Mesh mesh = GetComponent<MeshFilter>().sharedMesh;
        print(mesh.vertexCount);
    }
}
import UnityEngine
import System.Collections

public class Example(MonoBehaviour):

	def Start() as void:
		mesh as Mesh = GetComponent[of MeshFilter]().sharedMesh
		print(mesh.vertexCount)