Example: Count property

This example displays the number of the cells of the range.

  Range range = sheet.range("A1:E6");
  int count = range.getCount();
  System.out.println(count);

Related information

Count property