I have an array that can be any size, an example below:
Array
(
[0] => 40631
[1] => 40626
[2] => 40622
[3] => 40633
[4] => 59632
[5] => 40630
[6] => 40623
[7] => 40627
[8] => 40628
[9] => 54828
[10] => 40623
[11] => 40630
[12] => 42623
[13] => 54318
)
When entering any value, for example the number 50000, I should return the number of values that have at least 50000.
In this example, the function should return: 3
As this array can have N sizes and can receive any value to fetch the array, what form to look for the quantity and with the best performance?