Count all values greater than 5.5 in an array java
<p>I'm trying to print the count of numbers in the array that are greater than 5.5, but I have no idea where to start. I got the following code:   </p>

<pre><code>package les5;

import java.util.*;

public class Les5 {

    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);

        System.out.print("How many numbers would you like to add? ");

        int totalNumbers = s.nextInt();
        double[] number = new double[totalNumbers];

        for (int i = 1; i &lt;= totalNumbers; i++) {
            System.out.print("Number 1 " + i + ": ");
            number[i - 1] = s.nextDouble();
        }

        int numbCount = number.length;
        double avgNumber = Arrays.stream(number).sum() / number.length;


        System.out.println("Numbers count: " + numbCount);
        System.out.println("Average: " + avgNumber);

    }

}
</code></pre>

<p>At the end it has to say: "Total numbers greater than 5.5: x"</p>

<p>Could anyone help me out?</p>