Refactor counter to episodeNum