count abstract method

int count()

Returns the count of elements in the stream.

Example

final count = IntStream.range(1, 10).count(); // 9

Implementation

int count();