How to print a page number only in print format ? I tried by using @media print ,but it doesn't worked

How to print a page number only in print format ? I tried by using @media print ,but it doesn’t worked…

You achieve the same from using Jinja

I used below code to get page only in print but its not working
{{ _(“Page {0} of {1}”).format(’’, ‘’) }}

did you find a solution ?

Thanks for the reply …still I didn’t get a solution…