title: C#: Getting the number of rows/columns with ExcelPackage
body: <p>I need to read and write data from an Excel spreadsheet. Is there a method to finding out how many rows/columns a certain worksheet has using ExcelPackage? I have the following code:</p>
  
  <pre><code>FileInfo newFile = new FileInfo(@"C:\example.xlsx");
  using (ExcelPackage xlPackage = new ExcelPackage(newFile)) 
  {
      ExcelWorksheet worksheet = xlPackage.Workbook.Worksheets[1];
  }
  </code></pre>
  
  <p>I need to iterate through each cell this worksheet has and spit it into a fairly big table, but I don't want to print out blank cells or get an exception. Is there a method resembling <code>worksheet.rowNum</code> or <code>colNum</code>?</p>