First make a variable (myIndex) and make it increase every time a p element occurs.

Then insert the counter in front of all p elements

Note: For the counter property to work in IE8, a DOCTYPE must be declared.