Salesforce has defined custom field limits in the given link.
For eg :- Limit for Custom Fields for Developer Edition Org is 500 Custom Fields per Object. We can also request Salesforce and increase the limits from the default limits defined for that edition.
Is there any API using which we retrieve the Custom Field Limits?.