code: private int getNumberOfHydrogen(IAtomContainer atomContainer, IAtom atom) {
          java.util.List<IBond> bonds = atomContainer.getConnectedBondsList(atom);
          IAtom connectedAtom;
          int hCounter = 0;
          for (IBond bond : bonds) {
              connectedAtom = bond.getOther(atom);
              if (connectedAtom.getSymbol().equals("H")) {
                  hCounter += 1;
              }
          }
          return hCounter;
      }
docs: Gets the numberOfHydrogen attribute of the Polarizability object.
  
  @param  atomContainer    Description of the Parameter
  @param  atom  Description of the Parameter
  @return       The numberOfHydrogen value