What is wrong with my text changing script?

What is wrong with my text changing script?

var count = 10;

   function Update() {
   var a = GameObject.Find ("MenCount1");
       textMesh : TextMesh = a.GetComponent(TextMesh);

   textMesh.text = count.ToString ();

}

Please Help. Thanks.

you could try this

var count = 10;

   function Update() {
   var a = GameObject.Find ("MenCount1");
   var textMesh : TextMesh = a.GetComponent(TextMesh);

   textMesh.text = count.ToString ();

}