how can you count dublicate values in an array?
while(list($key,$val)=each($array)){ $number_of_values[$val]++; }