<!DOCTYPE html>
<html>
<head>
    <style>
        p::before {
            content: target-counter(url('#id1'), cnt) ' ';
        }
    </style>
</head>
<body style="font-size: 100px; counter-reset: cnt 5;">
<p id="id1">P</p>
</body>
</html>