I use the following code to list the files in a dir.
How can I count these items and print them
ie. Total Files in DIR (32)
$d = dir("path");
echo "Handle: ".$d->handle."<br>\n";
echo "Path: ".$d->path."<br>\n";
while($entry=$d->read()) {
echo "$entry. <br>\n";
}
$d->close();