Added a comment around how there is only meant to be one list counter per level and changed it to the regex replace.