count abstract method
Returns the count of elements in the stream.
Example
final count = IntStream.range(1, 10).count(); // 9
Implementation
int count();
Returns the count of elements in the stream.
final count = IntStream.range(1, 10).count(); // 9
int count();