Compare the HTML tags of source and translation.
array $tags: array containing all the HTML tags.
function htmlTagCount($tags) {
$counted_tags = array();
foreach ($tags as $tag) {
if (in_array($tag, array_keys($counted_tags))) {
$counted_tags[$tag]++;
}
else {
$counted_tags[$tag] = 1;
}
}
return $counted_tags;
}