Say I have an array like this:

```
array('a string', 23, array(array('key'=>'value'), 67, 'another string'), 'something else')

```

and I want to know **how many values** my array has, **excluding arrays** that are member of the main array. How? (The expected result is **6**)

Foreach loop is not suitable because of the problem itself - **unknown depth of array**.

Does anyone know how to implement this?