title: Add table row counts to every page
body: <p>How can I get the total number of rows written to a PdfPTable for every page using iTextSharp?</p>
  
  <p>I want to put all of my code <code>onStartPage</code></p>
  
  <pre><code>public class MyPdfPageEventHelpPageNo : iTextSharp.text.pdf.PdfPageEventHelper
  {
      public override void OnStartPage(PdfWriter writer, Document document)
      {
          /// my code
      }
  }
  </code></pre>