How to find Count of an array in php

Using the function count(); we can find the number of elements in a array.

$num[]=array(1,2,3,4,5);
echo count($num);

will returns 5.