datalogger for counter sensor with RTC HELP!

iNgine:
i followed it but same result as the string does. so many data being stored, tons of data. i wonder why?

Because you're storing the two variables to your log file every time you run through the loop, without regard to whether either of them has changed. You'd want something like this:

if (beeCounterA != lastBeeCounterA) 
{
  // if the state has changed, increment the counter
  if (beeCounterA == HIGH && millis() - lastEvent > interval)// Ignore this reading if it is too close to the last one
  {
    lastEvent= millis(); // a bee can be recorded) 
    // if the current state is HIGH then the button
    // wend from off to on:
     
    buttonBeeCounterA++;
    Serial.println("Bees are being detected entering Feeding Station A");
    Serial.print("number of bees that entered Feeding Station A:  ");
    Serial.println(buttonBeeCounterA);
    //Write Log File Header
    File logFile = SD.open("DATALOG.csv", FILE_WRITE);
    if (logFile)
    {
      logFile.print(buttonBeeCounterA);
      logFile.print(",");
      logFile.println(buttonBeeCounterB);
      Serial.print(buttonBeeCounterA);
      Serial.print(",");
      Serial.println(buttonBeeCounterB);
    }
    else
    {
      Serial.println("LogFile cannot be opened");
    }
  }
    lastBeeCounterA= beeCounterA;
}

You'll want to make sure all the braces match here, but they look right. BTW, when posting your code, please use the Auto Format tool under the Tools menu first--it'll make the code a bit easier to follow.