Need help making array of lights blink.

I am trying to make a c# script that uses an array. There should be an array that people tell how meany lights they want and drop them in as elements. I have this much done. My problem lies in making the code detect how many lights were put in. Then I want it to turn the first one off for a second then turn it back on and the next one off and repeat this patten over and over amonst all the lights in the array.

Here is my code so far

using UnityEngine;
using System.Collections;

public class LightControle : MonoBehaviour {


	public GameObject[] Light1 = new GameObject[0];
	
}

For a variable list you may want to use ArrayList, otherwise make the array as large as the largest number of lights it will hold. To know how many lights are in the arrayList, use the Count property. If you use an array, use the Length property. To turn them off and on use yield waitForSeconds();
public int count = 0;
ArrayList lightList = new ArrayList();

update(){
if(count == 0) switch();

}

IEnumerator switch() {
lightList[count].enabled = true;
yield return new WaitForSeconds(1);
lightList.enabled[count] = false;
if(count<lightList.Count){count++;switch();}

}