My orb and gem counter are counting simultaneously?

I’ve been working on a platformer where the player collects orbs and gems. They are to be collected as separate objects in the game. However, when the player collects one, whether it be a gem or an orb, they count simultaneously, at least on my GUI. Here are the scripts I’m using (Javascript):

GUI

#pragma strict

var gemIcon : Texture2D;

var orbIcon : Texture2D;

var customSkin : GUISkin;

function Start () {

}

function Update () {

}

function OnGUI()
{
	GUI.skin = customSkin;
	
	var gemNumberName = GemCounter.gemCounter;
	var gemName = gemNumberName.ToString();
	
	var orbNumberName = OrbCounter.orbCounter;
	var orbName = orbNumberName.ToString();
	
	GUI.Box(Rect(10, 10, 90, 50), gemIcon);
	GUI.Box(Rect(10, 70, 90, 50), orbIcon);
	GUI.Label(Rect(10, 10, 100, 50), gemName);
	GUI.Label(Rect(10, 70, 90, 50), orbName);
	
}

Orb trigger

#pragma strict

var Player : Transform;

function Start () {

}

function Update () {

}

function OnTriggerEnter()
{
		GameObject.FindWithTag("Orb");
		Destroy(gameObject);
}

Orb Counter

#pragma strict

static var orbCounter = 0;

function Start () {

}

function Update () {

}

function OnTriggerEnter()
{
		orbCounter += 1;
}

Gem Trigger

#pragma strict

var Player : Transform;

function Start () {

}

function Update () {

}

function OnTriggerEnter()
{
		GameObject.FindWithTag("Gem");
		Destroy(gameObject);
}

Gem Counter

#pragma strict

static var gemCounter = 0;

function Start () {

}

function Update () {

}

function OnTriggerEnter()
{
		gemCounter += 1;
}

If you can help me figure this out it would be highly appreciated.

The empty methods in your code should be removed - since you aren’t doing anything in Start or Update in a few of those, get rid of them.

Your issue here is you what these scripts are attached to. You didn’t say, but it’s likely its the player so your OnTriggerEnter events are firing for anything (since the GameObject.Find code is pointless/does nothing).