Replaced manual counting with CSS pseudo-element and counter