$example = array \'test\' => array( \'something\' => \'value\' ), \'whatever\' => array( \'something\' => \'othe
You can try the following:
$count = 0; foreach( $example as $value ) { if( in_array("other", $value ) ) $count++; }