Quick question about Lenght

I have a lot of balls in my screen so i counted them with:

private GameObject[] getCount;
private int count;

getCount = GameObject.FindGameObjectsWithTag("Ball");
count = getCount.Length;

In console it counts to 1, but after i kill last ball, counter stops. And I cant finish my game with:

if (count == 0)
        {
            Debug.Log("won");
        }

because console not counting to 0.

How can i finish my game when all balls are dead ?

Regards

Please show your code in context. The problem is in code which you have not shown.