Adding entry numbers to guestbook?

Hi everyone,
I was wondering if someone might be able to help?

I got a guestbook from http://www.flash-db.com/GuestBookTut/
and everything works great.

But I would like to add numbers to the entries for example:
There are 50 entries in the gb, last one added is displayed first.
So I would like to have a 50. infront of the name.
The next one following 49. etc. …
Its probably sth. with the
$NumEntries = count($DataArray) - 1;, and counting the entries,
yet I can’t get it to work !!!

Is there a way of adding these numbers with php?
Any suggestions, advice or help would be great.
Thanks

Here is the php:

<?php
// If you are using an old version of php, remove the next set of lines.
// or use $HTTP_POST_VARS["..."] instead.
$Submit 	= $_POST["Submit"];
$Name 		= $_POST["Name"];
$Email 		= $_POST["Email"];
$IP 		= $_POST["IP"];
$Provider	= $_POST["Provider"];
$Eintrzeit  = $_POST["Eintragszeit"];
$Eintrdatum = $_POST["Eintragsdatum"];
$Website 	= $_POST["Website"];
$Comments 	= $_POST["Comments"];
$NumLow 	= $_REQUEST["NumLow"];
$NumHigh 	= $_REQUEST["NumHigh"];

// Remove slashes.
$Name 		= stripslashes($Name);
$Email 		= stripslashes($Email);
$Website 	= stripslashes($Website);
$Comments 	= stripslashes($Comments);

// Kaufmanns "&"-Zeichen durch "UND" ersetzen, weil ALLES an Text oder Email nach dem "&" nicht mehr dargestellt wird!

$Name 		= str_replace("&","and",$Name);
$Email 		= str_replace("&","and",$Email);
$Website 	= str_replace("&","and",$Website);
$Comments 	= str_replace("&","and",$Comments);

// BAD WORD FILTER


// ###################################################################################
// ########## Reading and Writing the new data to the GuestBook Database #############

if ($Submit == "Yes") {
// Next line tells the script which Text file to open.
	$filename 	= "GuestBook.txt";

// Opens up the file declared above for reading 

	$fp 		= fopen( $filename,"r");
	$OldData 	= fread($fp, filesize($filename)); 
	fclose( $fp ); 

// Gets the current Date of when the entry was submitted<br />
// Grosses H = 24 Std Format, ansonsten bewirkt das A hinter der Zeitangabe den Zusatz 'AM' und 'PM'.
	$Today 		= (date ("d.m.y (H:i:s)",time()));
//	$Today 		= (date ("F dS, Y (h:i:s A)",time()));

// IP-Adresse und Provider des Besuchers loggen
	$IP			= getenv("REMOTE_ADDR");
    $Provider   = gethostbyaddr($_SERVER['REMOTE_ADDR']);
    $Eintrdatum = date ("d.m.y");
	$Eintrzeit  = date ("H:i:s");

// Puts the recently added data into html format that can be read into the Flash Movie.
// You can change this up and add additional html formating to this area.  For a complete listing of all html tags
// you can use in flash - visit: http://www.macromedia.com/support/flash/ts/documents/htmltext.htm

	$Input = "<font color=\"#999999\">Name: $Name<br>Email: <u><a href=\"mailto:$Email\">$Email</a></u><br>Posted: $Today<br></font><br>$Comments<br><font color=\"#666666\">_______________________________________</font><br><br>.:::.";

/* This Line adds the '&GuestBook=' part to the front of the data that is stored in the text file.  This is important because without this the Flash movie would not be able to assign the variable 'GuestBook' to the value that is located in this text file  */

	$New = "$Input$OldData";

// Opens and writes the file.

	$fp = fopen( $filename,"w"); 
	if(!$fp) die("&GuestBook=cannot write $filename ......&");
	fwrite($fp, $New); 
	fclose( $fp ); 
}

// ###################################################################################
// ######### Formatting and Printing the Data from the Guestbook to the Flash Movie ##



// Next line tells the script which Text file to open.
	$filename = "GuestBook.txt";

// Opens up the file declared above for reading 

	$fp 	= fopen( $filename,"r"); 
	$Data 	= fread($fp, filesize($filename)); 
	fclose( $fp );

// Splits the Old data into an array anytime it finds the pattern .:::.
	$DataArray = split (".:::.", $Data);
	
// IP-Adresse loggen
//	$IP=getenv("REMOTE_ADDR");

// Counts the Number of entries in the GuestBook
	$NumEntries = count($DataArray) - 1;
	

	print "&TotalEntries=$NumEntries&NumLow=$NumLow&NumHigh=$NumHigh&GuestBook=";
	for ($n = $NumLow; $n < $NumHigh; $n++) {
	print $DataArray[$n];
		if (!$DataArray[$n]) {
			Print "No More entries below";
		exit;
		}
	}

		 $MyName1 = "User1";
		 $MyName2 = "User2";
		 
		 $MyEmail1 = "user1@mysite.de";
		 $MyEmail2 = "user2@mysite.de";
                 
		 $Subject = "$Name has just signed your guestbook.";
		 $EmailBody = "Hello,
$Name has just signed your guestbook available at http://www.mysite.de.

The following were the details submitted into your guestbook:

Name: $Name
Email: $Email 
IP: $IP
Provider: $Provider
Eintragszeit: $Eintrzeit 
Eintragsdatum: $Eintrdatum 

Comment: 
$Comments
";
		 
		 $Message = $EmailBody.$EmailFooter;
		 
		 mail($MyName1."<".$MyEmail1.">",$Subject, $Message, "From: ".$Name." <".$Email.">");
		 mail($MyName2."<".$MyEmail2.">",$Subject, $Message, "From: ".$Name." <".$Email.">");
         
                
?>