returns count of visible rows
var count = $$("mytable").getVisibleCount();
It returns not ALL rows, and not actual count of loaded rows - but how many rows can be visible with current datatable height