Using the CSS 'counter-increment' property with JavaScript.