How many loops in a second?

Oh sweet i never knew about that function :stuck_out_tongue: thanks!
Edit: So this code

unsigned long time_counted = 0;//the time variable
int loops = 0;

void setup()
{
  Serial.begin(9600);
}
void loop()
{
  while(millis()<=1000)//we loop over
  {
    loops = loops + 1;//increments it
  }
  
  Serial.print("Time taken: ");
  Serial.println(millis());
  
  Serial.print("Loops: ");
  Serial.println(loops);  
  
  delay(1000);//wait a second
}

Send me(via serial)

Time taken: 1011
Loops: -28425

why is it a negative number?

Edit2: Changed it to an unsigned long, and sent

Time taken: 12375
Loops: 338769

Thanks anyways...