code: private int getAromaticNitrogensCount(IAtomContainer ac, IAtom atom) {
          List<IAtom> neighbours = ac.getConnectedAtomsList(atom);
          int narocounter = 0;
          for (IAtom neighbour : neighbours) {
              if (neighbour.getSymbol().equals("N") && (Boolean) neighbour.getProperty("IS_IN_AROMATIC_RING")) {
                  narocounter += 1;
              }
          }
          return narocounter;
      }
docs: Gets the aromaticNitrogensCount attribute of the XLogPDescriptor object.
  
  @param  ac    Description of the Parameter
  @param  atom  Description of the Parameter
  @return       The aromaticNitrogensCount value