AtomicSystem.get_count#

AtomicSystem.get_count(symbol)[source]#

Calculate the exact number of atoms for a specific type.

Parameters:
symbolstr or int

The atom type identifier to count.

Returns:
int

The number of atoms of the specified type.

Raises:
ValueError

If the symbol is not found.