reset counts to 0 when switching back to read mode