This example displays the number of rows of the range.
Range entireRow = range.getEntireRow(); System.out.println(entireRow.getCount());
Related information
EntireRow property