Looped Array to print as csv

In the code written above at the top of page.
Ignore the ";" I was writing from my phone not thinking sorry.

  int anArray[3][2] = {{12, 1}, {14, 0}, {16, 1}};

  byte bytesPerEntry = sizeof(anArray[0][0]);
  byte cols = (sizeof(anArray[0]) / bytesPerEntry);
  byte rows = ((sizeof(anArray) / cols) / bytesPerEntry);
  byte count = 0;
void setup()

{
  Serial.begin(115200);
}
void loop() 
{
  for (int r = 0; r < rows ; r++)
  {
    if (anArray[r][1] == 1)
    {
      count++;
      Serial.print(anArray[r][0]);
      if (r <= count)
      {
        Serial.print(",");
      }

      if (r == rows - 1)
      {
        count = 0;
      }
    }
  }
  Serial.println();
delay(500);
}

This returns the pin number with the issue