add window counter to log