Ver original<pre><?php $test = preg_split('/\s+\b/', '111 222 111 111 222 333 111'); print_r(array_count_values($test)); ?></pre>
Ver originalArray ( [111] => 4 [222] => 2 [333] => 1 )