We can display the total number all posts or in particular with following code , I have used only one curly brace, make sure there are two

{{ site.posts | size }}

To display count number for particular categories:

{{ site.categories.CAT | size }}

Posts you might like

Disqus Comments on Jekyll Site

A simple walkaround on how easily you can set up Disqus Comment Management System in your Jekyll site! read more