Fill in countPositive using a stream so that it returns how many numbers are greater than 0.
countPositive
filter keeps what matches, count reports how many remain — but it returns a long, so cast to int. The program prints 3 and then 0.
filter
count
long
int
3
0