How would that work exactly? That would make the HTML really cumbersome and clunky. Normally I'd agree, but in this case, imagine you're using a View engine to render the html against populated objects, it's easier to just output the number and not rely on the browser.
Can you illustrate what you mean?