Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

ChemistryFunctions

Guides

  • Wolfram Chemistry Functions

Symbols

  • AlkaneName
  • AlkaneQ
  • AtomSelector3D
  • AtomSelector
  • BohrModelPlot
  • ChemicalFormulaQ
  • ChemicalReactionQ
  • ConstitutionalIsomersQ
  • DiastereomersQ
  • EmbeddedMoleculeQ
  • EmpiricalFormula
  • EmptyMoleculeQ
  • EnantiomersQ
  • EpimersQ
  • FormatMoleculesAsGraphics
  • HydrocarbonQ
  • ImportComputationalChemistryData
  • IonCounts
  • MoleculeDelete
  • MoleculeGridPlot3D
  • MoleculeGridPlot
  • MoleculeJoin
  • MoleculeManipulate3D
  • MoleculeManipulate
  • MoleculeMirrorPlot3D
  • MoleculePatternQ
  • MoleculePlotOptions
  • MoleculeScaffold
  • MoleculeSubstructureMatches
  • PatternReactionQ
  • PeriodicTablePlot
  • RandomAlkane
  • RandomMolecule
  • RingMoleculeQ
  • RingPattern
  • SmilesPlot
  • StereoisomersQ
WolframChemistry`ChemistryFunctions`
IonCounts
​
IonCounts
[input]
gives an association whose keys are the ions present and whose values give the number of occurrences of the ions.
​
Details and Options

Examples  
(6)
Basic Examples  
(2)
Find the ions in a chemical formula:
In[1]:=
IonCounts
[ChemicalFormula["Mn2(SO4)3"]]
Out[1]=

3+
Mn
2,
2-
S
O
4
3
​
Find the ions for a molecule:
In[1]:=
IonCounts
[Molecule["manganous sulfate"]]
Out[1]=

2+
Mn
1,
2-
S
O
4
1
Scope  
(1)

Possible Issues  
(3)

SeeAlso
ChemicalFormula
 
▪
Molecule
 
▪
MoleculeDelete
RelatedGuides
▪
Wolfram Chemistry Functions
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com