This example displays the cell count of the first table.
TextTables tables = document.getTables(); TextTable table = tables.item(1); TextTableCells cells = table.getCells(); System.out.println(cells.getCount());
Related information
Count property