protected synchronized int assignDocumentNumber(){
  return ++docAndDoctypeCounter;
}

protected synchronized int assignDocumentNumber ( ) { return ++ docAndDoctypeCounter ; }
non - dom : increment document / doctype counter
