public void registerInvocation() {
    invocations++;

    Calendar cal = Calendar.getInstance();
    cal.set(Calendar.HOUR_OF_DAY, 0);
    cal.set(Calendar.MINUTE, 0);
    cal.set(Calendar.SECOND, 0);
    cal.set(Calendar.MILLISECOND, 0);
    long today = cal.getTimeInMillis();

    if (startDate == 0) {
      startDate = today;
    }
    if (lastDate == 0) {
      lastDate = today;
      dayCount = 1;
    }
    else if (today != lastDate) {
      lastDate = today;
      dayCount++;
    }
  }
public void registerInvocation()