hack for LivelyR, maintaining a tally of invalidations