Refactored slug generation to use a static count incremented in memory.