protected int validSubmissions(){
  if (submissions == null)   return 0;
  int size=0;
  for (int i=submissions.size() - 1; i >= 0; i--) {
    if (!submissions.elementAt(i).errors)     size++;
  }
  return size;
}

protected int validSubmissions ( ) { if ( submissions == null ) return 0 ; int size = 0 ; for ( int i = submissions . size ( ) - 1 ; i >= 0 ; i -- ) { if ( ! submissions . elementAt ( i ) . errors ) size ++ ; } return size ; }
all submission with no errors are counted . ( unsure if this is still necessary . )
