added window helper for windows and count and delta based implementations