unsigned long previoutime;

void setup() 
{
  Serial.begin(9600);

}

void loop() 
{
  unsigned long times = millis();
  int count;

  if(millis() - times < 1)
  {
      count++;
  }
  
  Serial.println(count);
  

}