remove reset_count method from Window

it shouldn't be exposed as public API, and it is not used internally
test some error conditions