Tag list";
	exec($tmsu . "tags", $output);
	$tag_num = sizeof($output);
	for($i = 0; $i < $tag_num; $i++){
		if($exclude !== ""){
			foreach($exclude as $excluded_tag){
				if($excluded_tag == $output[$i]){
					unset($output[$i]);
				}
			}
		}
	}
	$tag_num = sizeof($output);
	// Echo total tag count
	echo "There is a total of " . $tag_num . " tags
";
	//tag list
	foreach($output as $tag){
		$count = "";
		exec($tmsu . "files -c " . escape_cmd($tag) . $exclude_query, $count);
		if($count[0] !== "0"){
			echo("(" . $count[0]  .") " . $tag .", ");
		}
	}
?>