If you want to change the value returned by {{ .Title }} you need to edit the title field in front matter. Pages do not have permanent record or node IDs as you might find with something like WordPress or Drupal.
If you want to prefix the title with a counter when listing pages (and I have no idea why you would want to to do this), do either of these:
{{/* Ascending counter ( 0 through N-1) */}}
{{ $c := 0 }}
{{ range where site.RegularPages "Section" "posts" }}
{{ $t := printf "%04d %s" $c .Title }}
<h2><a href="{{ .RelPermalink }}">{{ $t }}</a></h2>
{{ $c = add $c 1 }}
{{ end }}
{{/* Descending counter (N-1 through 0) */}}
{{ $c := sub (len $p) 1 }}
{{ range where site.RegularPages "Section" "posts" }}
{{ $t := printf "%04d %s" $c .Title }}
<h2><a href="{{ .RelPermalink }}">{{ $t }}</a></h2>
{{ $c = sub $c 1 }}
{{ end }}