understanding attachinterrupt in a pulse counter

if the loop resumes, then count=0 is set and then copycount is printed

This only happens every 100 milliseconds because it is controlled by

  if (millis() - lastRead >= interval)      // read interrupt count every 0.1 second (100 ms). NB ~30 loops per milli sec