title: PHPSpreadsheet: how to get the number of loaded rows?
body: <p>How do I find out how many rows I have loaded using <code>PHPSpreadsheet\Reader\Xlsx::load()</code> method?</p>
  
  <p>I cannot find methods (or properties) for getting row count in Spreadsheet or Worksheet classes either.</p>
  
  <p>BTW I am using following code:</p>
  
  <pre><code>$filename = 'test.xlsx';
  $inputFileType = \PhpOffice\PhpSpreadsheet\IOFactory::identify($filename);
  $reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
  
  $reader-&gt;setReadDataOnly(true);  
  $reader-&gt;setLoadSheetsOnly($sheet);  
  
  $this-&gt;spreadsheet = $reader-&gt;load($filename);
  $this-&gt;worksheet = $this-&gt;spreadsheet-&gt;getActiveSheet();
  </code></pre>