JavaStreamcount

Returns the count of elements in the stream.

Syntax

stream.count()