firoz.raj -3 Posting Pro in Training

can anyone tell me how should i print on the data report
page no of total page.suppose there are total 10 page.
i want it should display on report 1 of 10 ,2 of 10 ...
when i place %p it simply print 1 can anybody tell me ?

%p