support array_count function. array_count:Returns the number of non-zero and non-null elements in the given array.