def smarts_match smarts, count=false
      obconversion = OpenBabel::OBConversion.new
      obmol = OpenBabel::OBMol.new
      obconversion.set_in_format('smi')
      obconversion.read_string(obmol,self.smiles)
      smarts_pattern = OpenBabel::OBSmartsPattern.new
      smarts.collect do |sma|
        smarts_pattern.init(sma.smarts)
        if smarts_pattern.match(obmol)
          count ? value = smarts_pattern.get_map_list.to_a.size : value = 1
        else
          value = 0 
        end
        value
      end
    end
def smarts_match smarts, count=false
      obconversion = OpenBabel::OBConversion.new
      obmol = OpenBabel::OBMol.new
      obconversion.set_in_format('smi')
      obconversion.read_string(obmol,self.smiles)
      smarts_pattern = OpenBabel::OBSmartsPattern.new
      smarts.collect do |sma|
        smarts_pattern.init(sma.smarts)
        if smarts_pattern.match(obmol)
          count ? value = smarts_pattern.get_map_list.to_a.size : value = 1
        else
          value = 0 
        end
        value
      end
    end
Match a SMARTS substructure
 @param [String] smarts
 @param [TrueClass,FalseClass] count matches or return true/false
 @return [TrueClass,FalseClass,Fixnum]