Hi Marc,
this is not done in an Ajax way as you are reloading the whole
db_structure.php.
When tbl_replace.php is called, the ajax_request parameter is set to
true so the script knows it's running in an Ajax context. So after it
does its job of inserting the row, would be a good time to count the rows.