Computer controlled ion counting isotope ratio mass spectrometer