my question is this.. i know in php, you can do something like this..

PHP Code:
$var count($array); 
but i dont know how to get javascript to count how many elements there are in the array so i can print them, without having to reset the number.

any ideas?