code: public int getNumberOfElements() {
          int count = 0;
          for (FormSectionController section : getSections()) {
              count += section.getElements().size();
          }
  
          return count;
      }
docs: Returns the total number of elements in this form, not including sections.
  
  @return  the total number of elements in this form, not including sections