I need help trying to code my simple game in c#

I am attempting to make drops fall from the sky, but to start I only want a couple. This is my code:
using UnityEngine;
using System.Collections;

public class DropMovement : MonoBehaviour {

public float MinX = -9.4f;
public float MaxX = 9.4f;
public GameObject dropPrefab;
public int numberOfDrops;
private int a;

private void spawnDrops()
{
Vector3 newPos = new Vector3(Random.Range(MinX,MaxX),7.5f,0);
GameObject drop = Instantiate(dropPrefab, newPos, Quaternion.identity) as GameObject;
}

void Start()
{
for (int a = 0; a < numberOfDrops; a++)
{
spawnDrops();
}

}

}

When I run it, hundreds of drops fall from the sky and I cant seem to control the number of them. I think the problem is with the for loop but I am not sure, help is much appreciated.

Doesn’t ‘numberOfDrops’ control how many are created?

yes, it does, it is a public so i set it to 5 but there are a lot more than five that fall from the sky, my issue is the the for loop doesn’t realize i only want 5.

under number of drops, you have ‘int a;’ in your for-loop you have int a again, delete the one under ‘numberOfDrops’