set numberOfRows to (do JavaScript "document.getElementsByClassName('celta_course_table')[" & i & "].childNodes[1].firstChild.firstChild.childNodes[" & j & "].firstChild.firstChild.childElementCount")