try this
int count = 0;
foreach (Control c in this.Controls)
{
if (c.GetType() == typeof(Label))
if (((Label)c).BackColor == Color.Red)
count++;
}
Note: if the labels are present in any container control, then you will have to iterate the container also, like
this[
^]