How to active mesh renderer with a script C#

I need to activate a mesh on an object that i got. and i want it to be activated when a certain condition is met. This is my code for the score

public class counter : MonoBehaviour {

	public static int scoreCounter = 0;
	
	
	void OnGUI()
	{
		string counterText = "Score is: " + scoreCounter;
		GUI.Box (new Rect(Screen.width - 150, 20, 130, 20), counterText);
	}
}

And this is the code i got so far to enable the mesh.

public class Renderpart2 : MonoBehaviour {

	// Use this for initialization
	void Start () {
		GameObject Score = GameObject.Find("Score");
		counter counter = Score.GetComponent<counter>();
		if(counter.scoreCounter > 40) {
		GetComponent(MeshRenderer).enabled = true;
		}
	}

}

Thank you for your help.

using UnityEngine;
using System.Collections;

public class Enabler : MonoBehaviour {
	public GameObject Obj;
	// Use this for initialization
	void Start () {
	
	}

	
	// Update is called once per frame
	void Update () {
		MeshRenderer m =Obj.GetComponent<MeshRenderer>();
		m.enabled = true;
	}
}

or like this

using UnityEngine;
using System.Collections;

public class Renderpart2 : MonoBehaviour {
 
    // Use this for initialization
    void Start () {
       GameObject Score = GameObject.Find("Score");
       counter counter = Score.GetComponent<counter>();
       if(counter.scoreCounter > 40) {
       GetComponent<MeshRenderer>().enabled = true;
       }
    }
 
}

You need to use a reference to the gameobject you are trying to access when using

GetComponent(MeshRenderer).enabled = true;

Use something like this instead:

Score.renderer.enabled = true

or

counter.renderer.enabled = true