function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jeffrey Tanzman 26Jeffrey Tanzman 26 

Is there any way to query all objects and determine the field limits for each instead of checking each object?

VinayVinay (Salesforce Developers) 
Hi Jeffrey,

You can use tooling api in developer console and see if that works.
SELECT count(DeveloperName), TableEnumOrId FROM CustomField GROUP BY TableEnumOrId ORDER BY count(DeveloperName) DESC

Check similar references below.
https://bofc.io/bulk-object-operations/explore-salesforce-limits-used-remaining-or-max-for-multiple-objects-in-single-xls-sheet
https://salesforce.stackexchange.com/questions/246347/how-can-i-know-how-many-fields-are-allowed-to-create-in-custom-object-via-metada
https://salesforce.stackexchange.com/questions/222003/list-of-all-objects-with-the-current-number-of-used-custom-fields

Please mark as Best Answer if above information was helpful.

Thanks,