Hi again Thanks for the help, however according to the PHP manual is should work: http://www.php.net/manual/en/function.count.php Please notice this was working in PHP 4 but moving to PHP 5 I had to change the way session variables are set, instead of "session_register("$var")" it now reads "$_SESSION["$var"]". If I test the session variable by "isset" and "is_array" it validates as true, but using "count" results in 0. And it works fine as long as the variable is not a session variable, no problem. This works fine: <? $k[0][0]=23; $k[1][0]=19; $k[2][0]=6; echo count($k); // results in 3 ?> Best regards Benny