Implementation note: should only count up when the window is closed/not focused. When the window is refocused, the counter should reset.
Implementation note: should only count up when the window is closed/not focused. When the window is refocused, the counter should reset.