Hi Jennie, if you want to get the last auto number you would just do a query and sort by that auto number descending and set maxLimit to 1 to retrieve the highest auto number.
However, the issue you’ll run into is if you ever delete any records then the auto number will no longer represent how many records exist.
Another approach is to have another table with just 1 record and then on your first table have a link to this table where every record has a link to that 1 record, then add a Count field to that table to show how many are referring to that 1 record. So long as every record in the first table points to it it will be an accurate reflection of the count.
Good luck!