#count::before {
    content: "{{ count|int }}";
}

@keyframes counter {
{% for i in range(100) %}
    {{i}}% {
        content: "{{ (count/100*i)|int }}";
    }
{% endfor %}
    100% {
        content: "{{ count|int }}";
    }
}