Mass spectrometry
Detection: There is a detector at the end of the mass spectrometer. When an ion hits the detector, a single electric current is produced at that location, which is then multiplied many times so a computer can notice it. The current produced is always proportional to the amount of ions of that specific type hitting the location. Molecules and atoms of the same type will always hit a specific location of their own.