This is another simple script, it tells you how many files there are in the specified directory, It can be used if you have a user system and you have downloadable files you can tell people how many files there are :)
<?
$total= count(glob('/full/path/to/directory/*'));
echo "There are $total files in the directory";
?>