>>522
$count = 0;
foreach ($test as $value) {
 $count += count($value);
}
echo $count;