flashCounters updated only when calling getFlash() or getAllFlashes()

Discussed at #4066