Hello Heinrich,
Take a look at Worksheet.getUsedRange(). This returns a Range object which contains all the cells in use. To get the last row, I imagine you'll need to do something like this:
List usedCells = worksheet.getUsedRange().getCells();
Cell lastCell = (Cell) usedCells.get(usedCells.size() - 1); // lastCell represents the bottom-right-most cell
int lastRow = lastCell.getRow();
-Mike