counter incremented before interval function called, fixed typo in readme