linhas de tabela de contagem de javascript

var rowCount = document.getElementById('myTableID').rows.length;
Kriss Sachintha