code: private int getDoubleBondedNitrogenCount(IAtomContainer ac, IAtom atom) {
          List<IAtom> neighbours = ac.getConnectedAtomsList(atom);
          IBond bond;
          int ndbcounter = 0;
          for (IAtom neighbour : neighbours) {
              if (neighbour.getSymbol().equals("N")) {
                  bond = ac.getBond(neighbour, atom);
                  if (!neighbour.getFlag(CDKConstants.ISAROMATIC)) {
                      if (bond.getOrder() == IBond.Order.DOUBLE) {
                          ndbcounter += 1;
                      }
                  }
              }
          }
          return ndbcounter;
      }
docs: Gets the doubleBondedNitrogenCount attribute of the XLogPDescriptor object.
  
  @param  ac    Description of the Parameter
  @param  atom  Description of the Parameter
  @return       The doubleBondedNitrogenCount value