code: public int getStatementCount() {
          int ret = 0;
          for (final StatementGroup sg : statementGroups) {
              ret += sg.getAllStatements().size();
          }
          return ret;
      }
docs: Returns the count of statements contained within the document.
  
  @return int