Update to match the new sliding window api and functionality.
Changed the counter to start at zero and have a reset signal.