The page number and the number of pages are probably the most common system variables that are available in your smartform, but there are many more available to you - in SFSY
System parameters or variables for Smartforms are directly available from the SFSY
structure:
Page &SFSY-PAGE& of &SFSY-FORMPAGES&
Check out the fields on structure SFSY
in SE11
and get counting.