you will need to add the count and logged in date columns to the users table.
edit the Authenticate user behavior on the login page so that it does not redirect. Make not of the name of the session that is created whith the users ID
create a recordset to lookup the users record in the the database, see the recordset on the profile page for details
add a Update record behavior to update the users table. for the Key Column value, use the users ID session variable.
For the login count, use the login count binding from the recordset. the binding code will look like:
<?php echo($_row_recordsetName['LoginCount']) ?>
add + 1 to that:
<?php echo($_row_recordsetName['LoginCount'] + 1) ?>
fro the login date, use the following code:
<?php echo(date(Y-m-d h:m:s)); ?>