Please enable JavaScript
https://{Your_Domain_URL}/services/data/v56.0/limits/recordCount can be used to find the number of records in each Salesforce Object using REST API. Blog Post: https://www.infallibletechie.com/2023/05/how-to-find-number-of-records-in-each-salesforce-object-using-rest-api.html