PHPSpreadsheet: how to get the number of loaded rows?
Using the worksheet's getHighestRow()
method
$highestRow = $this->spreadsheet->getActiveSheet()->getHighestRow();
or getHighestDataRow()
if you're only interested in rows where cells contain data and not any blank rows at the end of the worksheet