window counts is basically working