Something that you might be doing could be done this way...
for($i=0; $i<50; $i++) {
$dest[$source[$i]]++;
}
In theory, this would give you an array with the name as the index and the value as the count. You can then pull a list of the names with...
$name_array = array_keys($dest);
... and you can access the values similar to this...
for($i=0; $i < sizeof($name_array); $i++) {
print $name_array[$i]."-".$dest[$name_array[$i]]."<br>";
}