There is even easier than this {{ last_commits | length }} ;-)
{{ last_commits | length }}
Perfect :)
But we should work on your commit message, what would be good is something like:
Fix the number of commits displayed fixes http://pagure.dev.fedoraproject.org/pagure/issue/85
Commit 61f985cf fixes this pull-request
Pull-Request has been merged by subho.prp@gmail.com