gets the number of tasks visible on the screen (those that are not collapsed)
gantt.getVisibleTaskCount();