returns the number of items that can be seen with the current view height
var count = $$("myview").getVisibleCount();