cant get my variable to increase

I’m having trouble getting a variable to increase I’ve looked backed over the create with code course and still cant see why it wont work. the if statement in update never runs even when it should be found as true here is the code I have if anyone can help it would be much apricated.

public class JewelConutroller : MonoBehaviour
{
public float jewelCount = 0;

    // Start is called before the first frame update
    void Start()
    {
                
        
    }

    // Update is called once per frame
    void Update()
    {
        
        if (jewelCount > 1)
        {
            Debug.Log("Yay");
        }

    }

     private void OnTriggerEnter(Collider other)
    {
        if(other.gameObject.CompareTag("Player"))
        {
            increaseJewelCount();
            Destroy(gameObject);
                        
        }
        
    }
    private float increaseJewelCount()
    {
        jewelCount += 1f;
        return jewelCount;

    }

}

Supposing you have this script attached to every jewel, since your jewelCount is a class variable, each jewel has its own value. If the player enters the jewel, the value gets increases for this specific jewel only.

  1. Either make the variable static all the jewels will “share” the same variable (solution not advised)
  2. Create a new class responsible for managing the score and each time a jewel is picked, ask this manager to increase the counter of jewels. (In this case, the jewelsCount variable is moved into this new class)