Need to count how many values that are equal or above 5. This is my best guess, but it's not even close to working.
$array = array(1,4,8,1,4,10,5,6,2,4,6);
$x=0;
while ($x < count($array)){
if($array[$x]>=5){
$amount = array_count_values($array[$x]);
echo $amout;
}
$x += 1;
}