def form_counts(self):
    """form_counts() -> The max number of forms, some could be non-existent (deleted)."""
    try:
      return int(self.data[ self.add_prefix('next_form_id') ])
    except __HOLE__:
      return self.fields['next_form_id'].initial
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/django_forms.py/ManagementForm.form_counts