I searched for it and found the link C# EPPlus OpenXML count rows
int iRowCount = currentWorksheet.Dimension.End.Row - currentWorksheet.Dimension.Start.Row;
You can get the count by workBook.Worksheets.Count
workBook.Worksheets.Count