Number of child objects as variable

I just completed the Roll A Ball tutorial. At one point, we write the following lines:

if (count >= 12)
{
winText.text = “You Win!”;
}

Where 12 is the number of child objects “Pick Ups” has.

Is this number accessible in any way so I can write it like this instead?

if (count >= PickUps.amount)