pwtools.crys.Trajectory.get_nspecies

Trajectory.get_nspecies()

Dict with number of atoms per species.