Need help with gui .

Need help with this script i cant figure it out. I want my number of powerups or “Gems” to display in the top left gui. The number of gems is listed on my Playerhealth script as public static int. Here is the script for Gem counter.

using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class GemCounter : MonoBehaviour
{
public Playerhealth Gems2;
public Text Gemtxt;
public int GemCount;
int Gemsfromplayerhealth = Playerhealth.Gems;
public GameObject Player;

// use this for initialization
void Start()
{
    Gems2 = Player.GetComponent<Playerhealth>();        
    Gemtxt = GetComponent<Text>() as Text;
}

// UPdate is called once a frame
void Update()
{        
    GemCount = Gemsfromplayerhealth;
    Gemtxt.text = Gemsfromplayerhealth.ToString("000");
}

}

If it’s static you don’t need to get the Component, you simply do :

 Gemtxt.text = Playerhealth.whatEverYouNamedTheStaticInt.ToString();