code: @Override
      public int getConnectedLonePairsCount(IAtom atom) {
          int count = 0;
          for (int i = 0; i < lonePairCount; i++) {
              if (lonePairs[i].contains(atom)) ++count;
          }
          return count;
      }
docs: Returns the number of LonePairs for a given Atom.
  
  @param  atom  The atom
  @return       The number of LonePairs for this atom