code: @Override
      public DescriptorValue calculate(IAtom atom, IAtomContainer container) {
          int atomDegree = 0;
          List<IAtom> neighboors = container.getConnectedAtomsList(atom);
          for (IAtom neighboor : neighboors) {
              if (!neighboor.getSymbol().equals("H")) atomDegree += 1;
          }
          return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new IntegerResult(
                  atomDegree), getDescriptorNames());
      }
docs: This method calculates the number of not-H substituents of an atom.
  
  @param  atom              The IAtom for which the DescriptorValue is requested
  @param  container         The {@link IAtomContainer} for which this descriptor is to be calculated for
  @return   The number of bonds on the shortest path between two atoms