This example displays the count of the table styles of a spreadsheet.
System.out.println(spreadsheet.getTableStyles().getCount());
Related information
Count property