public int numberOfReplies(final Resource comment){
  final Iterator<Resource> children=comment.listChildren();
  int size=0;
  while (children.hasNext()) {
    children.next();
    size++;
  }
  return size;
}

public int numberOfReplies ( final Resource comment ) { final Iterator < Resource > children = comment . listChildren ( ) ; int size = 0 ; while ( children . hasNext ( ) ) { children . next ( ) ; size ++ ; } return size ; }
get the number of replies for a given comment .
