code: def _update_limits_from_api(self):
          
          logger.debug('Setting CloudFormation limits from API')
          self.connect()
          resp = self.conn.describe_account_limits()
          for lim in resp['AccountLimits']:
              if lim['Name'] == 'StackLimit':
                  self.limits['Stacks']._set_api_limit(lim['Value'])
                  continue
              logger.debug('API response contained unknown CloudFormation '
                           'limit: %s', lim['Name'])
docs: Call the service's API action to retrieve limit/quota information, and
          update AwsLimit objects in ``self.limits`` with this information.