dragonchild,
that doesn't work.
The count return from the code is "8", which is not correct, but correct result is "12".
I would like to compare the elements in @selected_data with @all_data array, if elements from @selected_data array found in @all_data, then increment the count.
thanks