Global Variables for Scripts in untiy c#

i want have global int in unity that i can access to variable without getcomponent for example we have 2 source code:

A.cs:

    using UnityEngine;
    using System.Collections;
    
    public class A : MonoBehaviour {
 global int health; //suppose we have global int in unity.
    	
    	void Update () {
    	
    	}
    }

B.cs:

    using UnityEngine;
    using System.Collections;
    
    public class B : MonoBehaviour {
    	
    	void Update () {
health--; // i want have global int that i can call it without getcomponent.
    	
    	}
    }

Output:
health:
100
99
98
97
.
.
.
-infinity

finally i can solve my problem

     using UnityEngine;
        using System.Collections;
        public class Player : MonoBehaviour 
        {
        	//Static variables are shared across all instances
        	//of a class. 
        	public static int playerCount = 0;
        	
        	void Update()
        	{
        		Debug.Log (playerCount);
        		//Increment the static variable to know how many
        		//objects of this class have been created.
        	}
        }

    using UnityEngine;
    using System.Collections;

 using UnityEngine;
using System.Collections;
    public class counter : MonoBehaviour {
    
    	// Use this for initialization	
    	// Update is called once per frame
    	void Update () {
    		Player.playerCount++;
    	
    	}
    }