Microsoft Interview Question

Find number of HTML table rows optimally