Example table:
A table
col1col2
Entry 1Entry 2
A1B1
A2B2
ab

Details of above table extracted using JavaScript:
Table captionA table
Number of rows (overall)5
Number of tbody elements2
Number of rows in thead element2
Number of rows in first tbody1
Number of rows in second tbody1
Number of rows in tfoot1
Text in first cell of second overall rowEntry 1
Text in second cell of first row of second tbodyB2