counting destoryed objects

hi guys im trying to write a simple bit of code so that once my five game objects have been destroyed i load the next scene but i cnt seem to make anything work

this is what im trying atm
a little bit of code so that if it cnt find the game object “Target” which is tagged it load the next scene
but this does cause anything to happen

can someone set me on the right lines please
function Update()
{
var Target = GameObject.FindGameObjectWithTag(“Target”);
if(“Target” = null)
{
Application.LoadLevel (3);
}

Hi.
I have posted the answer to your question Here

In your check before level loading, you are testing against the string “Target” and not the results of your search:

function Update() { 
 var Target = GameObject.FindGameObjectWithTag("Target"); 
  if(Target == null) {  // <--- test against search results, not name.
   Application.LoadLevel (3); 
 }
}