public static int getAtomCount(IChemFile file) {
        int count = 0;
        for (int i = 0; i < file.getChemSequenceCount(); i++) {
            count += ChemSequenceManipulator.getAtomCount(file.getChemSequence(i));
        }
        return count;
    }
public static int getAtomCount ( IChemFile file ) { int count = 0 ; for ( int i = 0 ; i < file . getChemSequenceCount ( ) ; i ++ ) { count += ChemSequenceManipulator . getAtomCount ( file . getChemSequence ( i ) ) ; } return count ; }
Get the total number of atoms inside an IChemFile.

@param file       The IChemFile object.
@return           The number of Atom object inside.