public int getNumRowsInViewport() {
		return viewport.getHeight() / table.getRowHeight();
	}
Returns the number of rows that are visible in the viewport. 

@return
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/logviewer/ui/ViewportUtility.java