Unfortunately there is no such feature, you need to go with apex triggers. 1. Whenever a new record is being created, increment the value. 2. Whenever a record is being deleted, decrement the value.
Also, Its good to store the # of records in a separate object/custom setting, to avoid unnecessary updates to all the records.
mark this as the solution, if it solves your problem.
Unfortunately there is no such feature, you need to go with apex triggers.
1. Whenever a new record is being created, increment the value.
2. Whenever a record is being deleted, decrement the value.
Also, Its good to store the # of records in a separate object/custom setting, to avoid unnecessary updates to all the records.
mark this as the solution, if it solves your problem.
Thanks