Handle window counter