Adding logic for sub bytes counter and sword counter.