you need to use a recordset to populate the count field
set the recordset to fiter using the $_SESSION['USES_threadID'] session variable to pull the correct record.
for the date hidden element, use the following code for todays date as the value:
<?php echo(date("Y-m-d")); ?>
for the count hidden element, you will need to use the recordset variable, and perform path on it:
<?php echo($row_recordsetName['columnName'] + 1); ?>