title: Jasper Reports Show "Page X of Y" using a single text field
body: <p>I would like to create one text field that contains <code>Page X of Y</code>, without splitting it in two parts, as per the common solution. My textfield contains <code>"Page " + $V{currentPage} + " of " + $V{PAGE_NUMBER}"</code> with <code>evaluationTime=auto</code>.</p>
  
  <p>Let's say I have a report with 10 pages. Three are the <strong>Title Band</strong>, six are <strong>Detail Band</strong> and one is the <strong>Summary Band</strong>. My results show <code>"Page 0 of 10"</code> for the <strong>Title Band</strong>s, correct counts for the <strong>Detail Band</strong>s, then <code>"Page 0 of 10"</code> for the <strong>Summary Band</strong>s.</p>
  
  <p>How do you ensure the variable is calculated everywhere, not only on <strong>Detail Band</strong>?</p>