New UI displaying score

I dont know how to display my score with unitys new ui before i just made a gui text and added it to the script component on my player

public GUIText countText;

void OnTriggerEnter(Collider other) {

//if the object we collide with has the tag "PickUp we set its transform to inactive and 

adds to our count variable

		if (other.gameObject.tag == "PickUp") {

			//sets the  transform to inactive

			other.gameObject.SetActive(false);

			//adds one to our count 


			count += 1;

			//calls our function

			SetCountText();
		}

	}

	void SetCountText(){

	//creates a function that displays our score on the screem

	countText.text = "Score: " + count.ToString();
}

but this no longer worked and i cant find any tutorials

Include UnityEngine.UI in your includes.

Then make countText this: public Text countText;

The new UI uses a different type for all UI elements.